Forum: Poser Python Scripting


Subject: Setting an object's face to 'point towards' another object.

timarender opened this issue on Jul 06, 2013 · 7 posts


markschum posted Mon, 08 July 2013 at 9:28 PM

quaternions melted my brain years ago.

They are required to get the world transforms for body parts as I understand it.

One of the python gurus has some code to do the calculations. Try posting a specific request to this forum.  I only did maths 40 years ago and I dont remember much about array calculations. ;(

ATAN2 seems to aavoid the need for a buch of IF statements to find what quadrant you are in to add the correction to the atan derived angle.

 

My motto for code is "whatever works ! "