TerriJohns opened this issue on Oct 29, 2013 · 10 posts
TerriJohns posted Tue, 29 October 2013 at 1:33 PM
I'm new to Poser Python. I am trying to perform a simple task - put a value into a figure's parameter (for example, bend the shin to a certain angle). But I keep getting an error message when I run my script. Can someone take a quick look and see if my syntax is incorrect?
My example:
import poser
import random
scene=poser.Scene()
scene.SetFrame(23)
scene.SelectFigure(scene.Figure('Roxie'))
actor = scene.Actor('Left Shin')
parm = actor.ParameterByCode(poser.ParmCodeBEND)
parm.SetValue(88)
When I run the above script, I get the following error:
Traceback (most recent call last):
* File "C:UsersPublicDocumentsPoser Pro 2014 ContentMy Pythonkicking1.py", line 7, in
* parm = actor.ParameterByCode(poser.ParmCodeBEND)*
AttributeError: 'module' object has no attribute 'ParmCodeBEND'