Forum: Poser Python Scripting


Subject: Recognizing the direction the model is facing

Tekitoumen opened this issue on Aug 09, 2022 ยท 7 posts


Y-Phil posted Fri, 16 September 2022 at 3:48 PM

adp001 posted at 4:24 PM Thu, 15 September 2022 - #4444537

You can get the exact rotation of all body parts using [actor].WorldQuaternion(). No need to fiddle with single vertices/polygons to get the direction of an object.

If you are not familiar with Quaternions: Poser user "AllStereo" wrote something useful years ago and put it into freestuff:

https://www.renderosity.com/freestuff/items/72870/poser-quaternion-methods

Thank you 

๐’ซ๐’ฝ๐“Ž๐“


(ใฃโ—”โ—กโ—”)ใฃ

๐Ÿ‘ฟ Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
๐Ÿ‘ฟ Mac Mini M2, Sequoia 15.2, 16GB, 500GB SSD
๐Ÿ‘ฟ Nas 10TB
๐Ÿ‘ฟ Poser 13 and soon 14 โค๏ธ