|
Looks like your question is modified now…
“How do I get the object’s rotation values?”
obj.rotation.controller.value
[edit] if that would help…
objA = Box() objB = Box pos:[40,0,0]
oc = Orientation_Constraint() objA.rotation.controller = oc
oc.appendTarget objB 100
rotate objB 45 z_axis
rot1 = objA.rotation.controller.value --> (quat 0 0 -0.382683 0.92388) rot2 = objA.transform.rotation --> (quat 0 0 -0.382683 0.92388) rot3 = objA.rotation --> (quat 0 0 0.382683 0.92388) rot4 = objA[3][2].value --> (quat 0 0 -0.382683 0.92388) rotZ = objA.rotation.z_rotation --> 45.0
Author: Anubis
|