PDA

View Full Version : Calling a procedure within a MEL script from a custom attribute


lilacpalms
08-01-2007, 11:00 AM
Hi there

I have a MEL script that creates a group and adds a couple of custom attributes to it.

What I would now like to do is, when the value changes in one of my custom attributes (it's a boolean value), I would like it to call a procedure within my MEL script.

Has anyone got any ideas?

thanks

harmless
08-01-2007, 04:33 PM
scriptJob -attributeChange myGroup.myAttr MyFunction;

Execute this anytime during a maya session and MyFunction() gets called each time myAttr changes on myGroup

lilacpalms
08-01-2007, 04:42 PM
Man, that is frickin awesome - I could just kiss you!

thanks

CGTalk Moderation
08-01-2007, 04:42 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.