global proc separateUV() { string $sel[] = `ls -sl`; //run the poly map cut command polyMapCut; //clear the selection select -cl; //reselect the previous selectd faces select -r $sel; //convert the selection to UVs PolySelectConvert 4; //change to the move tool moveTool; } proc moveTool() { TranslateToolWithSnapMarkingMenuPopDown; MarkingMenuPopDown; if (`popupMenu -exists tempMM`) { deleteUI tempMM; }if (`popupMenu -exists tempMM2`) { deleteUI tempMM2; }; } //delete any instances of the window in the scene if(`window -exists UVWin`) { deleteUI UVWin; }