Forum: Poser Python Scripting


Subject: Help detecting actor rotation attitude to control gravity morphs

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


an0malaus posted Thu, 10 February 2005 at 2:25 AM

Tguyus, I looked at ockham's jiggles script (though I can't run it being on a Mac, dagnabbit). What I'm looking for here is an instantaneous gravity vector angular measurement relative to the default orientation of the body part or prop. That doesn't require calculations of first or second order derivatives for velocity and acceleration or twang/damped oscillations. Specifically, I need to determine by observation, which axis of rotation of an actor relative to world coordinates should influence a specific morph target. Imagine a static hair prop with morphs for side-side and front-back swing/sway. The front-back swing needs to be controlled by the head bend (x-rotation) if rest of the figure is in its default orientation. If you turn the figure 90 degrees left or right, which rotation axis components do you use to determine the head's attitude relative to the default position? If you then lie the figure on its side (still facing left or right), The head's axis (origin to endpoint vector) may lie in the global YZ plane with a global X rotation of +/- 90 degrees (approx) but no front-back swing of the hair would be expected, side-side would be involved instead.



My ShareCG Stuff

Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.