HartyBart opened this issue on Dec 13, 2023 ยท 3 posts
HartyBart posted Wed, 13 December 2023 at 4:44 AM
The script belowautomates the setup and rending of a real-time depth-map of a Poser scene, then reverts the changes to the scene. My question is about line 50, which opens the background color-picker for the user. There the user still needs to manually change the scene background color to white, then is expected to press 'OK'. Is there some way to change the background color of a Poser scene automatically, by using Python code?
Result:
Code:
Learn the Secrets of Poser 11 and Line-art Filters.
bwldrd posted Thu, 14 December 2023 at 8:32 AM
scene.SetBackgroundColor (1.0,1.0,1.0) .. this is from the poser 11 Poser Python Methods Manual.pdf, but still works in 13.
--------------------------------------------------------------------------------
Consider me insane if you wish, but is your reality any better?
HartyBart posted Thu, 14 December 2023 at 2:14 PM
Wonderful, many thanks Bwldrd. I had run several searches for "background" across my Poser Python folder, but didn't think to search for SetBackground.
Here is the final working fully-automated script, tested on both Poser 11 and 13. Useful for those needing a quick depth pass render, but who not want to go to the trouble of setting up an Atmosphere, using a special .MT5, or rendering in Firefly to .PSD with z-buffers on.
Learn the Secrets of Poser 11 and Line-art Filters.