The title says it all. I tried briefly to find an elegent boolean toggle to this but it turns out to be frustratingly tough. More likely than not, its my ignorance of MEL.
I'm trying to write a MEL script to toggle a setting found in preferences -> manipulators -> component manipulators -> reposition using middle mouse button.
The echo command of checking/unchecking the box returns as follows.
manipOptions -middleMouseRepositioning true;
manipOptions -middleMouseRepositioning false;
Also interesting is
manipOptions -q -middleMouseRepositioning;
// Result: 1 //
My kneejerk oneliner code comes out like this..
manipOptions -middleMouseRepositioning ( !`manipOptions -q -middleMouseRepositioning` ); Needless to say I have embarrased what little confidence I had..
Someone please enlighten me..