Forum: Poser Python Scripting


Subject: Saving a Render Via Python Script

destro75 opened this issue on Jun 20, 2005 ยท 3 posts


destro75 posted Mon, 20 June 2005 at 1:45 PM

How would I go about saving a render done through Python, in Python? SaveImage seems to export the Preview image, rather than a fully rendered one. I don't see a command to choose which panel is used to export. Maybe the problem is that the SaveImage is running before the render is complete? Is there a way to pause the execution of the script until a render has completed? All help is greatly appreciated!


nruddock posted Tue, 21 June 2005 at 2:52 PM

Which version of Poser are you asking about PP, P5, P6, or P6+SR1 ?


destro75 posted Fri, 24 June 2005 at 2:11 PM

Okay, I think I figured out my own issue. I was outputting to PNG, and for some reason, when you save the image to PNG, you get a transparent background. I solved that problem by saving to JPG. Now it saves the render correctly. Thanks nruddock for responding! BTW: To answer my own question about waiting to run SaveImage, I am using scene.ProcessSomeEvents(1) right after the Render() call to allow the render to complete. Don't know if it matters, but it works fine this way so...