Forum: Poser Python Scripting


Subject: Help detecting actor rotation attitude to control gravity morphs

an0malaus opened this issue on Feb 08, 2005 ยท 12 posts


ockham posted Thu, 10 February 2005 at 12:07 PM

When developing Jiggles I tried to solve this problem but couldn't! So I just limited gravity to up-down motion. The deeper problem for a generalized script is that there's no good way to tell which morph serves which purpose, so the user will have to cut and try so much that the script doesn't save any labor. But if you're going to match the script to one hair-prop with a known set of morphs, you can do the experimentation once and hard-wire the relationships. Possible idea: The last SR of Poser 5 has a new function that could help. Each facet of the mesh can give you a WorldNormal. So you could find in advance a "key facet" for each adjustable section of the hair, and its WorldNormal when the section is maximally affected by gravity. Then during action, you can check its WorldNormal at each moment, and adjust the morphs oppositely to bring that facet back toward its "down" position.

My python page
My ShareCG freebies