Maya screenshot ~= Sketchup jpg

Maya screenshot ~= Sketchup jpg

Append to usersetup.mel to use in with customCommand.mel


//20100119 ec
//skethcup style polygon visual on selection
global proc de(){
setPolygonDisplaySettings("dispEdge");
}
global proc dse(){
setPolygonDisplaySettings("dispSoftEdge");
}
global proc dhe(){
setPolygonDisplaySettings("dispHardEdge");
}

//20100119 ec
//save screenshot (updated to work on maya 2011 with gradient background)
global proc ss(){
displayRGBColor "background" 1. 1. 1. ;
displayRGBColor "backgroundTop" 1. 1. 1. ;
displayRGBColor "backgroundBottom" 1. 1. 1. ;
//setAttr "defaultRenderGlobals.imageFormat" 4; //tif
//setAttr "defaultRenderGlobals.imageFormat" 8; //jpg
setAttr "defaultRenderGlobals.imageFormat" 20; //bmp
playblast -frame 1 -cf "c:\\playblast\\screenshot.bmp" -fmt "image" -viewer 0 -orn 0 -p 100 -wh 4000 3000;

displayRGBColor "background" 0.688 0.688 0.688 ;
displayRGBColor "backgroundTop" 0.535 0.617 0.702 ;
displayRGBColor "backgroundBottom" 0 0 0 ;
}

Since maya playblast is limited to computer display resolution
use zoneScreen (doesnt work on windows 7) or other virtual display to cheat a higher resolution if required
use sizer to resize maya screen to resolution

Leave a Reply

Your email address will not be published. Required fields are marked *