Forum: Poser Python Scripting


Subject: Looking for these python methods

sergio777 opened this issue on Sep 18, 2021 ยท 4 posts


sergio777 posted Sat, 18 September 2021 at 2:51 PM

Hi friends, there are some options that are not documented in any Poser manual, I would like to know if it is possible to access those options through python scripts.

Some of the options are these:

and these:

does anyone know how to access through python scripts?


HartyBart posted Mon, 20 September 2021 at 3:22 AM

A Python script can juggle the Comic Book options on and off, but it's not too useful since it takes artistic judgement to set the dials, in combined interaction with the lighting. Plus you have to get the lighting itself done right, and then there is no way for a script to control some things like Preview Shadow Maps Size. So basically you can't automate that creative part of the setup for the users. And without that they're going to just automate the output of crap.

The others are Firefly, which again can be done by a script but it needs to be done right or the renders are going to take a long time to render compared to the fast realtime Comic Book. Getting it really fast, at the size of render you want for the frames of a print comic, assumes the user has a certain type of computer. And then it's not just a matter of setting the switches you've circled, but you also need to know and set all the scene.CurrentFireFlyOptions control commands. There is a standard script which ships with Poser which gives access to these though, in Partners / D3D / Render Firefly, which should give you some pointers.



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


sergio777 posted Sat, 25 September 2021 at 9:54 PM

Thanks HartyBart, could you please show me how to do it?
I made the mistake of saving each scene in a different poser file, so I have to open the files one by one and adjust the render settings manually and that's a big waste of time.



adp001 posted Sun, 26 September 2021 at 3:15 AM

If you have saved the movie sequences in PZ3 files and want to use the same render and movie settings for all of them, you can work around this by deleting the corresponding data from the files. These are:

1. movieInfo (at the very beginning of the PZ3 file)
2. renderDefaults (at the very end of the PZ3 file)

If you load such a modified file, the last settings will be used.
Make sure that you remove everything inside the curly brackets, the keyword and the brackets.

But be careful: when you save the loaded file back, Poser will add the missing information again and you will have to do the deletion again.

It might be problematic if you don't have an editor that can handle large files. Then only a script that does the cutting helps.