Lost Adventurer, Aleks Kirilenko (3D)
LC #42 Pipers Alley

View Full Version : can MEL use dynamic variables

04-28-2003, 12:37 PM
hi all.

just a general question really. i have a script i made that allows you to alter the transparency of a material with a custom MEL slider. at the moment i need to run the script on each object i have slected so that i get a new slider to change that particular material.

what i would idealy like is for the user to be able to just click on the object, and the relevant material is automatically read into the script, which means only one slider would be needed. however, this would mean that the script would be able to dynamically read in the newly selected object. is this possible with MEL scripts, or would i need to use the API for this kind of functionality?



04-28-2003, 03:33 PM
you can use a script job, and set the trigger to change selection

CGTalk Moderation
01-15-2006, 01:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.