Forum: Poser Python Scripting


Subject: How to edit a model by selecting a frame in a script

Tekitoumen opened this issue on Jul 20, 2022 ยท 7 posts


adp001 posted Thu, 21 July 2022 at 8:23 AM

Y-Phil posted at 4:39 AM Thu, 21 July 2022 - #4441630

Did you add key frames to your character?

I tried it with a fresh started P12 (Trial). Opened a Python Terminal and typed in:

poser.Scene().SetFrame(10)

Poser updated the framecounter as expected.

@Tekitoumen:

How do you try to change the current figure?

FYI:

fig = poser.Scene().CurrentFigure()

actor = fig.Actor("Chest")

geom = actor.Geometry()

geom.Vertices() (the base mesh) stays the same in every frame. It doesn't change. What changes is geom.WorldVertices(). It reflects what morphs, weightmaps etc did to modify the base mesh. But it makes no sense to change these values frame by frame. Better use morphs and activate/deactivate or set value to these morphs the way you need them at certain frames.