Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
A couple of weeks ago the Renderosity Freestuff had three example Python scripts, showing how to have a script load a saved render-engine preset for Poser. The examples are for SuperFly, Firefly and Sketch.
Learn the Secrets of Poser 11 and Line-art Filters.
Thanks for the info. But I was already so far. But like poser 12, poser 11 is missing the LoadPreset method! This is another half finished thing in the Poser Python SDK that drives me crazy. Unlike poser.Scene().CurrentFireFlyOptions(), poser.Scene().CurrentSuperFlyOptions() is missing the LoadPreset and SavePreset methods.
scene = poser.Scene()
option = scene.CurrentSuperFlyOptions()
scene.SetCurrentRenderEngine(poser.kRenderEngineCodeSUPERFLY)
option.LoadPreset(r"C:\Users\Bayer\AppData\Roaming\Poser Pro11\Render\Presets\SuperFlyTest.prp")
Traceback (most recent call last):
File "", line 1, in
AttributeError: LoadPreset
The attribute error says it all!
Greetings
Thanks. Perhaps it will be enabled when the final release of Poser 12 appears.
Just for future reference, over in DAZland today Algovincian has also posted a method to do the same 'load a render preset, and make a render' thing in DAZ Studio.
var oRenderMgr = App.getRenderMgr();
var oContentMgr = App.getContentMgr();
oContentMgr.openFile("myDir|myFile.duf", true);
oRenderMgr.doRender();
Replace | with forward slash.
Learn the Secrets of Poser 11 and Line-art Filters.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
First of all a happy new year to all!
I have noticed that the SuperflyOptions object retrieved via poser.Scene().CurrentSuperFlyOptions() has no method to load or save the options. How can I still load an preferences file?
Greetings