Message 1 of 12

Not applicable
08-23-2020
12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello! Im a bit new to melscript. I'm trying to create a script that will toggle the IK/FK attribute on a controller. I have it working before the "else" command but I cant seem to figure out how to get it to toggle 1 to zero in the second half.
select -r samus_RIG:C_IkSpinehipCtrl ;
if ( "samus_RIG:C_IkSpinehipCtrl.toFkSpine" == 0 );
{
setAttr "samus_RIG:C_IkSpinehipCtrl.toFkSpine" 1;
}
else
{
setAttr "samus_RIG:C_IkSpinehipCtrl.toFkSpine" 0;
}
select -cl ;
Solved! Go to Solution.