global proc saveACopy() { string $text; string $result = `promptDialog -title "Save a Copy" -message "Enter Name:" -button "OK" -button "Cancel" -defaultButton "OK" -cancelButton "Cancel" -dismissString "Cancel"`; if ($result == "OK") { $text = `promptDialog -query -text`; string $currentScenePath = `file -q -sn`; //string $shortName = `file -q -sn -shn`; //string $justNameNoMa[]; //$numTokens = `tokenize $shortName "." $justNameNoMa`; string $justLongNameNoMa[]; $numTokensToo = `tokenize $currentScenePath "." $justLongNameNoMa`; file -rn ($justLongNameNoMa[0] + "_" + $text); file -f -save; file -rn $currentScenePath; } else { warning "Nothing done.\n"; } //system ("/usr/bin/zip \"" + $justLongNameNoMa[0] + "_" + $text + ".zip\"" + " \"/tmp/" + $justNameNoMa[0] + $text + ".ma"); //system ("/usr/bin/zip \"" + $currentScenePath + "_" + $text + ".zip\" " + $currentScenePath + " &"); }