Turn off "display origin" on all props in a scene?



  • I was just playing with Ultimo Paradiso. It seems to have all items toggled to "display origin" by default, and there are a lot of items in a scene. Is there a way to toggle them all off at once?



  • @willshetterly try:

    scene = poser.Scene()
    for actor in scene.Actors():
        actor.SetDisplayOrigin(0)
    scene.DrawAll()
    

    If you are also suffering with the OriginXZY parameters being visible in the Parameters Palette, that gets a little bit more involved, and I'll include the code here for completeness, since these parameters are unhidden when the Joint Parameters Palette is opened and may not get hidden again. The xOffsetA, yOffsetA and zOffsetA parameters correspond (typically) to the Origin of the actor (despite there being a separate line in CR2 or PP2 files which defines the origin. The Poser Developers have not deigned to define constants to match these values, so they can only be referred to by TypeCode number.

    scene = poser.Scene()
    for actor in scene.Actors():
        for parmCode in [17,19,21]: # These are xOffsetA, yOffsetA & zOffsetA
            parm = actor.ParameterByCode(parmCode)
            if parm is not None:
                parm.SetHidden(1)
    scene.DrawAll()