Forum: Poser Python Scripting


Subject: Adjust feet in Poser animation

Nebula opened this issue on Mar 04, 2007 ยท 8 posts


svdl posted Sun, 04 March 2007 at 3:35 PM

The problem arises from the line "LeftHeel=fig.Name()" LeftHeel is just a string.
Replace the lines

fig=scene.CurrentFigure()
LeftHeel=fig.Name()

and

fig=scene.CurrentFigure()
RightHeel=fig.Name()

with

LeftHeel=scene.CurrentFigure()

and

RightHeel=scene.CurrentFigure()

This will make sure that LeftHeel and RightHeel are figure objects, not strings. Figure objects have a SetConformTarget method.
Since SetConformTarget takes a figure object as argument, you also should change the line

JoJo=fig.Name()

into

JoJo=scene.CurrentFigure()

Hope this helps,

Steven.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff