gutterFish
09-08-2010, 01:44 PM
//hey gang heres a simple script I wrote this morning to toggle between world/Normal modes on the move manipulator. Thought Id share it. Ill up the icon for it too if I can work it out..: p.
//====================================
global proc fish_toggleMoveMode(){
int $getsMoveMode=`manipMoveContext -q -mode Move`;
if($getsMoveMode == 2)
{
manipMoveContext -e -mode 3 Move;
}
else
{
manipMoveContext -e -mode 2 Move;
}}
//Just in case: copy the above text into script editor/save with fish_toggleMoveMode.mel and drop into documents/maya/scripts.
//put the .bmp image in documents/maya/200?/prefs/icons
edit: and oh yeah...maya should source the script when loading if its in your user scripts directory
then just type fish_toggleMoveMode; into the command line and drag it up to your shelf. Finally if you want to load the icon via the shelf editor.
//====================================
global proc fish_toggleMoveMode(){
int $getsMoveMode=`manipMoveContext -q -mode Move`;
if($getsMoveMode == 2)
{
manipMoveContext -e -mode 3 Move;
}
else
{
manipMoveContext -e -mode 2 Move;
}}
//Just in case: copy the above text into script editor/save with fish_toggleMoveMode.mel and drop into documents/maya/scripts.
//put the .bmp image in documents/maya/200?/prefs/icons
edit: and oh yeah...maya should source the script when loading if its in your user scripts directory
then just type fish_toggleMoveMode; into the command line and drag it up to your shelf. Finally if you want to load the icon via the shelf editor.