PDA

View Full Version : execute mel script on scene change


pixlix2
04-05-2006, 05:28 PM
Hello everyone,

I'm wondering if it was possible to have a mel script execute as soon as anything of the scene has changed - this could be a change on a shader or even just the tumbling of the perspective camera.
Is such a thing possible? Such a functionionality could allow you to make scripts that have kind of a "live-functionality" that is decoupled from the timeline.

Many thanks!

Bonedaddy
04-05-2006, 07:40 PM
Look up "scriptJob".

tomViolet
04-05-2006, 07:46 PM
I don't have much experience with this command but you can do what you want with scriptJob. This command "attaches" a mel script to a predefined event (you can look the list of available events in the help).

hope this helps

pixlix2
04-05-2006, 08:38 PM
very nice!
Many thanks to both of you.
This helps alot!
:)

CGTalk Moderation
04-05-2006, 08:38 PM
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.