Forum: Poser Python Scripting


Subject: Python can set a render-engine and render, but can it also call a preset?

HartyBart opened this issue on Dec 05, 2020 ยท 23 posts


HartyBart posted Sun, 06 December 2020 at 4:12 AM

Thanks for the tip. I see that the PoserPython Methods manual has a half dozen LoadLibrary examples, such as LoadLibraryCamera and LoadLibraryLight, but no LoadLibraryPreset.

I guess what's meant to be used instead is the LoadPreset command, as noted elsewhere in the PoserPython Methods manual. This has no working example in the manual, but can apparently load a saved PRP preset file (FireFly and presumably also SuperFly).

I've tried the following basic loader script and am getting nowhere. The "scene." in scene.LoadPreset stops the script and seems to need to be something else, but I have no clue what it needs to be. Adding double-slashes in the file path make no difference.

presetscript.jpg



Learn the Secrets of Poser 11 and Line-art Filters.