you could do it maybe this way: CODE global int $mySculpingState; if ($mySculpingState) artUpdatePuttyOperation artPuttyCtx pull; else artUpdatePuttyOperation artPuttyCtx push; $mySculpingState = !$mySculpingState;
This defines a global integer-variable. if its 1 it calls the "pull"-command if not the "push"-one. then it turns the variable on/off;
btw: I've seen your website!! Amazing stuff! You not already work for a company? Looks all very professional! :]
while you are quite at liberty to configure Maya and it's hotkeys how you like, before you do I'd suggest getting used to the way Maya is supposed* to be used, i.e. marking menu stroking.
To change between push and pull (and also smooth and erase) simply use the u hotkey.
To change to Push, hold down u and stroke DOWN with the mouse. for Pull, stroke UP. you don't need to bother messing with toggle keys when this functionality is built in. You can also stroke left and right for Smooth and Erase respectively. Remember, with Maya's Marking Menus you don't have to wait for the pop-up to appear, stroking quickly in the correct direction is enough. This approach is far more versatile than a toggle key and becomes totally natural after a little practice.
ewerybody this is really what I want! thank you so much. I should laern MEL really. thanks for visiting my website I'm trying to get a job as soon as get a work permission.
Naughty THis is way more than What I want! I didn't know that there's a deep fuctions in maya like this. I'm really going to use this to get used to it. you gave me so detaild information thanks.