Forum: Poser Python Scripting


Subject: JointVertexWeights and TwistVertexWeights

kuroyume0161 opened this issue on Nov 13, 2004 ยท 18 posts


ockham posted Sat, 13 November 2004 at 3:54 PM

Here's how I moved them. This is obviously not a general-purpose script..... it just moves them in some direction, proportional to their vertex weight, so you can see which areas move more and which move less. You'd have to manually edit the "z" to the other dims. import poser scene=poser.Scene() TheFig=scene.CurrentFigure() OneActor=scene.CurrentActor() Geom=OneActor.Geometry() L=OneActor.JointVertexWeights("z") # Hold the list for i in range(Geom.NumVertices()): ~V=Geom.Vertex(i) ~V.SetZ(V.Z()*(1.0+L[i])) # Move in proportion scene.DrawAll()

My python page
My ShareCG freebies