Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
You're beyond my territory here! One thing you might try: just before DrawAll, use GeomChanged() on all the actors you've affected.
My python page
My ShareCG freebies
Try WorldDisplacement instead of Origin. In my experience, W-D gives the proper actual position for most things.
My python page
My ShareCG freebies
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Ok, here I am again; I create a ball prop, then I run this script on it. The center of the magnet base should move to the vertex defined as "vert" (the ball prop has 162 verts). The problem is, it dosent seem to work! I use the print statments to show the mag bases before and after origin, and it DOES move! Something screwy with the coordinate systems I am using, do I need to get the verts coordinates in another way, such as "world"? How can this be done? #################################### scene = poser.Scene() actor = scene.CurrentActor() geom = actor.Geometry() vert = geom.Vertex(100) # vertex no. 100 scene.CreateMagnet() actor = scene.Actor("Mag Base 1") print "before origin", actor.Origin() actor.SetOrigin(vert.X(), vert.Y(), vert.Z()) print "after origin", actor.Origin() scene.DrawAll() #################################### Thanks once again to the wise sages of this forum for any help they might be able to provide! josiah