PDA

View Full Version : scriptjob -attributeChange refresh


PolyHertz
01-30-2011, 05:42 AM
I'm trying to use a scriptJob with the attributeChanged flag, but the problem if that the object it needs to affect doesn't remain constant throughout the scriptJobs life. I thought I could just update the variable that its referring to but it seems that after being initialized the scriptJob can't be changed. It looks like this:

scriptJob -p xyzWindow -ac ($varSel[0] + ".translate") maniProc;

Is the best way to go about this to kill it when a new object is selected and create a new scriptJob in its place?

djx
01-30-2011, 06:33 AM
Yes, you could have a SelectionChanged scriptJob that kills the old and creates a new attributeChange scriptJob

David

CGTalk Moderation
01-30-2011, 06:33 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.