Go to: Synopsis. Return value. MEL examples.
advanceToNextDrivenKey (string $advanceFlag, string $attribute)
None
Variable Name | Variable Type | Description |
---|---|---|
$advanceFlag | string | if true, go to next key, else go to previous key |
$attribute | string | the driven attribute or "" to use selected item |
// Say you have a lattice point keyed against a joint's rotation. // Select the lattice point and to go to the previous key enter: advanceNextDrivenKey -previous ""; // To go to the next driven key enter: advanceToNextDrivenKey -next ""; // To go to the first driven key enter: advanceToNextDrivenKey -first ""; // To go to the last driven key enter: advanceToNextDrivenKey -last ""; // If the object has more than one driven-key relationship defined, and // the "" argument is used, we advance ALL the drivers that // affect that object. // Therefore, if you have many driven attributes on a node, you may want // to specify the attribute directly, for example: advanceToNextDrivenKey -previous nurbSphere1.tx; // Via the UI, you can specify an attribute to be advanced using the // setDrivenKey window menu item: Key->Go To Next, Key->Go To Previous.