Forum: Poser Python Scripting


Subject: Getting "PointAt" angles via python....

konan opened this issue on Jan 15, 2005 ยท 12 posts


konan posted Mon, 17 January 2005 at 3:32 PM

That sounds like a good idea. The math that I posted above should be suitable for that purpose. The main thing to remember when calculating the Euler angles, is that they depend on the order of rotation for the actor in question. In general, there are 9 different combinations, however, the standard Poser 3/4/5 characters probably only use 2 or 3 (just guessing).

e.g.

for XYZ rotations...

R = RzRyRx (or the opposite, can't remember off the top of my head)

for ZXY rotations...

R = RyRxRz

Then extract the angles ax, ay and az from the appropiate rotation matrix R.

It would also be extremely useful to track the "twist" parameter of the object that it is point at. So you can move the prop to point the body part towards it, and you can twist the prop to make the body part twist. Konan (Creator of Blacksmith3D)

Blacksmith3D_Signature.jpg

Blacksmith3D - Morph - Paint - Suite
Reshape Objects Easily. Paint textures in true 3D.
Import/Export Poser CR2 or OBJ files.
New version available (December 3, 2004)
http://www.blacksmith3d.com