View Full Version : trigger event when an attribute changes

12-03-2011, 12:48 AM
I'm doing some versioning functions for assets in a shot.
Here is my problem:
i have my referenced character in a group node, with some metadata about this node : version number, filepath, name, etc.
I want that when the user changes the version number of an asset, it automatically loads the version of the asset he asked for.
I wanted to do it with scriptJobs, but since they are not persistent, closing maya (or the scene if kws is set). I would like this trigger to be always present.
If the users were forced to do a getShot every time they start working, i could create the scriptjobs when i load the shot for them. But since they can work from local copies, that won't do the trick.
So how can this be achieved?
thank you for your suggestions

12-03-2011, 02:34 AM
Maybe you could embed a scriptNode which calls the scriptJob. You can set the scriptNode to evaluate upon opening the file, so it should be fairly persistent.

12-05-2011, 05:47 PM
ok thank you i don't know much about scriptNodes but will look into it :)

that works perfect actually thank you :)

CGTalk Moderation
12-05-2011, 05:47 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.