Maya Embedded Language

Expand Outliner Hierarchy
select -hi; fitPanel -selected;

Playblast Script
// Show the dialog box: string $filename; string $result = `promptDialog -title "Specify Playblast Filename" -message "Enter Filename:" -button "OK" -button "Cancel" -defaultButton "OK" -cancelButton "Cancel" -dismissString "Cancel"`; // Use the command again in query mode to // get the text: if ($result == "OK") { $filename = `promptDialog -query -text`;

//Create the playblast with the specified filename in a playblast folder in the current project folder: playblast -format avi -filename ("playblasts/" + $filename + ".avi") -sequenceTime 0 -clearCache 1 -viewer 1 -showOrnaments 1 -fp 4 -percent 100 -compression "none" -quality 100; //Print message: print ($filename + " has succesfully been created in the playblasts folder of your current project!"); } else {print "cancelled";}