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

X rotate not working

$
0
0

Ok so, I'm trying to write a script that will change the values or set the values in the whole timeline. The script is as below-

 

var g8 = Scene.getPrimarySelection();

var skeleton = Scene.getSelectedSkeletonList ();

for (var fig_idx = 0; fig_idx != skeleton.length; ++ fig_idx) {

var bone = skeleton[fig_idx].findBoneByLabel ("Right Shoulder Bend");

c = bone.getXRotControl ();

c1 = bone.getYRotControl ();

c2 = bone.getZRotControl ();

//c.setValue (c.getValue () + 15 );

//c1.setValue (c1.getValue () - 15 );

}

 

var msg = c.getValue();

MessageBox.information( msg, " is the value.", "&OK" );

//return;

Now, the issue here is that when I use the function getXRotControl(), it's returning zero, while the value on the dial is -5.59, while both the Y and Z rotation values are showing properly, its only the x values I'm unable to get. While everything is working for all the other bones. This means that the function getXRotControl() is not working properly for the bones "Right Shoulder Bend" and "Right Shoulder Twist" and also for left shoulders too. I need to add +15 twist to each frame, since twist dial is red, it corresponds to x rotate.


Viewing all articles
Browse latest Browse all 1039

Trending Articles



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