{"id":94,"date":"2010-04-18T00:22:00","date_gmt":"2010-04-18T00:22:00","guid":{"rendered":"http:\/\/pycheung.com\/weblog\/?p=94"},"modified":"2012-12-10T17:11:55","modified_gmt":"2012-12-10T17:11:55","slug":"maya-screenshotsketchup-jpg","status":"publish","type":"post","link":"https:\/\/www.pycheung.com\/weblog\/post\/94","title":{"rendered":"Maya screenshot ~= Sketchup jpg"},"content":{"rendered":"<p>Append to usersetup.mel to use in with customCommand.mel<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/pycheung.com\/weblog\/wp-content\/uploads\/2010\/08\/zrtn_010n5d5c0a86_tn.jpg\" style=\"WIDTH: 600px; HEIGHT: 374px\" height=\"374\" width=\"600\"\/><\/p>\n<pre>\n<br\/>\/\/20100119 ec<br\/>\/\/skethcup style polygon visual on selection\n<br\/>global proc \nde(){<br\/> setPolygonDisplaySettings(\"dispEdge\");<br\/> }<br\/>global proc \ndse(){<br\/> setPolygonDisplaySettings(\"dispSoftEdge\");<br\/> }<br\/>global \nproc dhe(){<br\/> setPolygonDisplaySettings(\"dispHardEdge\");<br\/> }\n<\/pre>\n<pre>\n<br\/>\/\/20100119 ec<br\/>\/\/save screenshot (updated to work on maya 2011 with gradient background)<br\/>global proc ss(){<br\/> displayRGBColor \"background\" 1. 1. 1. ;<br\/> displayRGBColor \"backgroundTop\" 1. 1. 1. ;<br\/> displayRGBColor \"backgroundBottom\" 1. 1. 1. ;<br\/> \/\/setAttr \"defaultRenderGlobals.imageFormat\" 4; \/\/tif<br\/> \/\/setAttr \"defaultRenderGlobals.imageFormat\" 8; \/\/jpg<br\/> setAttr \"defaultRenderGlobals.imageFormat\" 20; \/\/bmp<br\/> playblast -frame 1 -cf \"c:\\\\playblast\\\\screenshot.bmp\" -fmt \"image\" -viewer 0 -orn 0 -p 100 -wh 4000 3000;<br\/> <br\/> displayRGBColor \"background\" 0.688 0.688 0.688 ;<br\/> displayRGBColor \"backgroundTop\" 0.535 0.617 0.702 ;<br\/> displayRGBColor \"backgroundBottom\" 0 0 0 ;<br\/>}\n<\/pre>\n<p>Since maya playblast is limited to computer display resolution <br \/>use <a href=\"http:\/\/www.google.com\/search?q=zoneScreen\">zoneScreen<\/a> (doesnt work on windows 7) or other virtual display to cheat a higher resolution if required <br \/>use <a href=\"http:\/\/www.google.com\/search?q=sizer\">sizer<\/a> to resize maya screen to resolution<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Append to usersetup.mel to use in with customCommand.mel \/\/20100119 ec\/\/skethcup style polygon visual on selection global proc de(){ setPolygonDisplaySettings(&#8220;dispEdge&#8221;); }global proc dse(){ setPolygonDisplaySettings(&#8220;dispSoftEdge&#8221;); }global proc dhe(){ setPolygonDisplaySettings(&#8220;dispHardEdge&#8221;); } \/\/20100119 ec\/\/save&#8230;<\/p>\n<div class=\"royalwp-readmore-wrap\"><a href=\"https:\/\/www.pycheung.com\/weblog\/post\/94\" class=\"royalwp-readmore\">Explore more <i class=\"far fa-hand-point-right\"><\/i><\/a><\/div>\n","protected":false},"author":2,"featured_media":1083,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[159],"tags":[12,60,62],"_links":{"self":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/94"}],"collection":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":2,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":933,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/94\/revisions\/933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media\/1083"}],"wp:attachment":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}