PDA

View Full Version : Toggle Snap Rotate


dweinin
04-03-2006, 02:25 PM
Hello. I'm looking for a way to toggle the snap on my rotate with a hotkey. I want to hit Shift+E and have it turn on and when I hit Shift+E again it turns the snap off.

Right now I'm doing it using two different hot key configurations I have Upon Press:

manipRotateContext -e -snap true Rotate;
// Result: Rotate //
manipRotateValues Rotate;
toolPropertyShow;

Then I also have Upon Release:

manipRotateContext -e -snap false Rotate;
// Result: Rotate //
manipRotateValues Rotate;
toolPropertyShow;


This doesn't work as well as it should.

wrend
04-03-2006, 03:10 PM
something like this, just on press, should do the trick.

manipRotateContext -e -snap (!`manipRotateContext -q -snap Rotate`) Rotate;
add the other commands as you see fit.

dweinin
04-03-2006, 04:27 PM
Perfect. Works great.

Thank you.

Mikademius
04-05-2006, 12:01 PM
"j" is already the default hotkey for this ;)

CGTalk Moderation
04-05-2006, 12:01 PM
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.