tvining opened this issue on Nov 21, 2009 · 8 posts
ockham posted Sat, 21 November 2009 at 1:59 PM
This should do what you want.... I haven't tested it.
If the real parameter names are different (like 'side-side' instead of 'Side-Side')
you'll need to fix that.
============
import poser
scene=poser.Scene()
fig=scene.CurrentFigure()
lfore=fig.ActorByInternalName('lForeArm').Parameter('Side-Side')
rfore=fig.ActorByInternalName('rForeArm').Parameter('Side-Side')
lsh=fig.ActorByInternalName('lShldr').Parameter('Twist')
rsh=fig.ActorByInternalName('rShldr').Parameter('Twist')
for f in range(scene.NumFrames()):
scene.SetFrame(f)
lsh.SetValue(lsh.Value()+lfore.Value())
rsh.SetValue(rsh.Value()+rfore.Value())
for f in range(scene.NumFrames()):
scene.SetFrame(f)
lfore.SetValue(0.0)
rfore.SetValue(0.0)