rusted_nut
07-28-2003, 07:22 AM
Here is what i'm trying to do:
Select spine joints one by one, check if their Y rotateaxis' are less than 0, if so rotate 180 degrees, otherwise do nothing.
I've started with a selection array that lists their rotateAxis'
string $spineRot[] = `ls ("spine*JNT.rotateAxis")` ;
$spine = `getAttr $spineRot` ;
I'm having trouble using that info in a statement. Should I be using a if-else solution or a for-in loop and what might it look like?
Thanks for any help
Select spine joints one by one, check if their Y rotateaxis' are less than 0, if so rotate 180 degrees, otherwise do nothing.
I've started with a selection array that lists their rotateAxis'
string $spineRot[] = `ls ("spine*JNT.rotateAxis")` ;
$spine = `getAttr $spineRot` ;
I'm having trouble using that info in a statement. Should I be using a if-else solution or a for-in loop and what might it look like?
Thanks for any help
