PDA

View Full Version : Run procedure in response to attribute change


ronviers
11-28-2008, 06:39 PM
Hi,


I would like to be able to run a procedure in the event of a change in the value of the spans attribute of a rebuildCurve node.

In other words, when a user moves a slider that changes the number of spans of a rebuildCurve node, I need that change in spans to run a procedure.

I do not know what my options are on how to do it. If it has to be an expression, is there a way to configure the expression so it evaluates only when there is a change in the number of spans? Are there ways other than expressions?

Thanks,
Ron

goleafsgo
11-28-2008, 07:29 PM
Look at the the MEL examples for the scriptJob command. It has a flag that you can use to tell it to fire off when an attribute changes.

ronviers
11-28-2008, 07:34 PM
That sounds perfect. The more I look at expressions, the more it looks like that was never going to work for me.



Thanks a lot,

Ron

CGTalk Moderation
11-28-2008, 07:34 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.