Help with really simple MEL


#1

Hi,

I want to make shelf button that enables certain attributes in “Use Constraints…” selection (Select > Use Constraints…). On below image is what i want to be enabled and so far i figured out how to enable “Current and Next” and enable “Angle” with >

polySelectConstraint -m 2 -a true;

What i need help with is how to also set Max Angle to 1 degree or 2 or 3 degree?

Please help,
Thanks! :wink:


#2

Ok i think i got it somehow and managed to got what i need with >

polySelectConstraint -t 0x8000;
resetPolySelectConstraint;
polySelectConstraint -m 2 -a on -ab 0 1;

Where:
-t 0x8000 // edge mode
resetPolySelectConstraint; // reset to default values
-m 2 // sets constrain to current and next
-a on // enable Angle
-ab 0 1 // sets Min 0 and Max 1 degree