Condition command and specifically the dependency flag.

Condition command and specifically the dependency flag.

Anonymous
Not applicable
237 Views
0 Replies
Message 1 of 1

Condition command and specifically the dependency flag.

Anonymous
Not applicable
Morning!
Querey for the day.
What can be put into the dependency flag of the condition command?
so far I am sure that you can use the events or conditions section of the scriptJob flags.
I want to know if I can use any custom ones like say when a specific attribute changes like scriptJob does.

quick run through


condition -initialize -d idle -s "MoP" ifItsTrue;
global proc int MoP()
{
int $swapSpace = `getAttr LeftArm_poleVector_CTRL.SwapSpace`;
if ($swapSpace == 1)
{
return(true);
}
else
{
return(false);
}
};


Right now Im using the IDLE dependency but why cant maya have a event or condition to check for an attribute change?

Update, used an expression dependency and it put it into an infinite loop.

LeftArm_PoleVector_CTRL.CurrentSpace=LeftArm_PoleVector_CTRL.SetSpace

This worked, not as I wanted but it still worked, and its not a standard condition or system event. So there must be a way to basically watch one attribute I just haven't figured out how.
0 Likes
238 Views
0 Replies
Replies (0)