Forum: Poser Python Scripting


Subject: Thanslate parameters from Body to hip

maur_2005 opened this issue on Feb 05, 2020 ยท 5 posts


3dcheapskate posted Thu, 06 February 2020 at 3:34 AM

I've just been playing with a Poser flamingo, and I've realized that there's more to this than meets the eye.

I loaded the white flamingo in a particular pose and set all the x/y/z/rotations/translations of both the Body and Hip to zero. (The ball at its feet marks the world origin, and is also the centre of rotation of the flamingo Body)

I duplicated it and made it red, and set the body x/y/z translations to 10/20/30 respectively and body x/y/z rotations to 30/60/90 respectively.

I duplicated the white flamingo again and made it green. For this one I set Hip x/y/z translations to 10/20/30 respectively and Hip x/y/z rotations to 30/60/90 respectively.

I had expected both flamingos (red and green) to be in the exact same location and orientation, which was obviously not true.

I duplicated the white flamingo again, made it blue, and turned off IK., and set the 6 parameters as per the green flamingo, i.e. Hip x/y/z translations to 10/20/30 respectively and Hip x/y/z rotations to 30/60/90 respectively.

The difference between the blue and green ones is simply due to IK, because there's an IK chain between the hip and feet - any rotation/translation of the hip with IK turned on (the green flamingo) will bend/stretch the legs.

The difference between the red and blue flamingos had me puzzled, but I think it's due to different rotation ordersfor the Body (yxz) and Hip (zyx)

Flamingos.jpg

The centre of rotation for the Hip is shown by the green crosshairs below

CentreOfRotation.jpg

So you need to consider all of this


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).