Forum: Poser - OFFICIAL


Subject: Is there an existing script to copy parameter limits between figures?

Cage opened this issue on May 03, 2013 · 9 posts


ockham posted Sat, 04 May 2013 at 6:35 AM

Nope, there isn't an extra step.  I've got a script that looks about the same as markschum's example, and it works instantly.

You would need an error check on the body parts and parm names, like this

import poser

scene=poser.Scene()

fig1=scene.Figure('FirstVickyOrSomething')

fig2=scene.Figure('SecondVickyOrWhatever')

for a1 in fig1.Actors():
    try:
        a2=fig2.Actor(a1.Name())
    except:
        continue
    for p1 in a1.Parameters():
        try:
            p2=a2.Parameter(p1.Name())
        except:
            continue
        p2.SetMaxValue(p1.MaxValue())
        p2.SetMinValue(p1.MinValue())
       

My python page
My ShareCG freebies