PDA

View Full Version : if/else


phelps40
10-23-2007, 11:12 PM
should be a quick easy one for anyone who knows what theyre doing.. which i DONT...

anyway, heres what i want to do:
make a toggle script for upres/lowres of a rig. here are the 2 commands that come up when i change it...
setAttr "tropicalBird_rig:PLACEMENT.GEO" 0;
setAttr "tropicalBird_rig:PLACEMENT.GEO" 1;
its all the smart stuff in between that im clueless on...
help! thanks!

ashishdantu
10-24-2007, 02:23 AM
hi phelps40,

this should work :

setAttr "tropicalBird_rig:PLACEMENT.GEO" (!`getAttr "tropicalBird_rig:PLACEMENT.GEO"`);

CGTalk Moderation
10-24-2007, 02:23 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.