{"id":19215,"date":"2022-07-14T23:25:48","date_gmt":"2022-07-14T23:25:48","guid":{"rendered":"https:\/\/jurn.link\/dazposer\/?p=19215"},"modified":"2022-08-19T16:06:34","modified_gmt":"2022-08-19T16:06:34","slug":"a-small-python-script-to-load-and-render-a-sketch-preset-in-poser-11","status":"publish","type":"post","link":"https:\/\/jurn.link\/dazposer\/index.php\/2022\/07\/14\/a-small-python-script-to-load-and-render-a-sketch-preset-in-poser-11\/","title":{"rendered":"A small Python script to load and render a Sketch Preset in Poser 11"},"content":{"rendered":"<p>Copy-paste, save as a .py Python script. Make sure the &#8221; &#8221; are not fancy curly quotes. They need to be straight quotes&#8230; <code>\" \"<\/code><\/p>\n<pre class=\"nums:false lang:python decode:true \" >\r\n# A Python script to load and render a Sketch Preset in Poser 11.\r\n# Do the usual setup stuff.\r\nimport poser\r\nscene = poser.Scene()\r\n\r\n# Tell Poser we are going to want to load a Firefly options preset.\r\noption = scene.CurrentFireFlyOptions()\r\n\r\n# Set Firefly as the render engine.\r\nscene.SetCurrentRenderEngine(poser.kRenderEngineCodeFIREFLY)\r\n\r\n# Load the Sketch render preset, and Firefly will\r\n# accept it even though it's not a .prp Firefly preset.\r\n# Note that the backslash is required on the file path.\r\n\r\noption.LoadPreset(\"C:\\sketch_preset.pzs\")\r\n\r\n# Now the important bit, we have the script switch \r\n# Poser's render mode to Sketch.\r\nscene.SetCurrentRenderEngine(poser.kRenderEngineCodeSKETCH)\r\n\r\n# Do the render with the current Sketch preset and Sketch\r\n# engine, and adopt the other current render settings.\r\nscene.Render()\r\n<\/pre>\n<p>Yous custom Sketch presets are found at:<\/p>\n<p><em>C:\\Users\\YOUR_USERNAME\\AppData\\Roaming\\Poser Pro\\11\\SketchPresets<\/em><\/p>\n<p>or<\/p>\n<p><em>C:\\Users\\YOUR_USERNAME\\AppData\\Roaming\\Poser\\12\\SketchPresets<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Copy-paste, save as a .py Python script. Make sure the &#8221; &#8221; are not fancy curly quotes. They need to be straight quotes&#8230; &#8221; &#8221; # A Python script to load and render a Sketch Preset in Poser 11. # Do the usual setup stuff. import poser scene = poser.Scene() # Tell Poser we are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,9,3,27],"tags":[],"class_list":["post-19215","post","type-post","status-publish","format-standard","hentry","category-automation","category-freebies","category-poser","category-python-scripts"],"_links":{"self":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/comments?post=19215"}],"version-history":[{"count":14,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19215\/revisions"}],"predecessor-version":[{"id":19714,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19215\/revisions\/19714"}],"wp:attachment":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/media?parent=19215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/categories?post=19215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/tags?post=19215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}