Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1040

setOrientation() issue

$
0
0

I have a small problem I'm trying to solve and it has to do with setting the Orientation in the joint editor.

Normally, I use these methods to set the joint transform:
setOrigin()
setEndPoint()
setOrientation()

However, setOrientation() only accepts quaternions as a parameter.  This is a major problem for me.  Daz Studio is screwing up the quaternion to euler angle conversion, and I can't find a fix for it.

If you look at the Joint Editor in the Tools Setting, Orientation is displayed as 3 separate controls of X Rotation, Y Rotation, and Z Rotation.  I was wondering if it was possible to access those controls programmatically, either by script or code.  Reason being, I would like to set those values directly as angles, rather than going through a quaternion.  Is that possible?

https://i.imgur.com/eNIDGbW.png

 


Viewing all articles
Browse latest Browse all 1040

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>