uncle808us opened this issue on Jul 14, 2021 ยท 13 posts
HartyBart posted Wed, 14 July 2021 at 4:39 PM
This Python script should clear most of the gunk off a Poser 11 scene you want to render to Preview. It assumes you have only one Group and also that the Ground is present in the scene.
# Clear PREVIEW scene of unwanted guide gunk, before rendering to PREVIEW.
# Your Poser 11 scene is assumed to have it it a GROUND and one visible GROUP box.
# Version 1.0
import poser
scene = poser.Scene()
# Turn off PREVIEW visibility of "Grouping 1" grouping box, by internal name
actor = scene.ActorByInternalName("Grouping 1")
actor.SetVisible(0)
# Ensure all scene lights are not displaying their guide-wires in PREVIEW.
if (scene):
lights = scene.Lights()
for light in lights:
if (light.LightOn()):
light.SetOnOff(0)
else: light.SetOnOff(0)
# Ensure current selection's DisplayOrigin guides (aka 'axis wires' or 'green rods') are off in PREVIEW.
# Can be left on by accident or auto-activated on coming back from SKETCH Designer to PREVIEW.
for actor in scene.Actors():
actor.SetDisplayOrigin(0)
# Now select the GROUND to ensure no bounding boxes or similar are displaying on figures or props.
# GROUND must be present in the scene, of course, but it nearly always is.
scene.SelectActor(scene.Actor("GROUND"))
# Redraw the cleaned PREVIEW scene ready for rendering.
scene.Draw()
Save as a .txt file, rename to .py
Learn the Secrets of Poser 11 and Line-art Filters.