Skip to content

Commit

Permalink
Shifter: Update data collector to include world quaternion rotation a…
Browse files Browse the repository at this point in the history
…nd rotation order
  • Loading branch information
miquelcampos committed Jul 11, 2024
1 parent c2f07bc commit 547bc51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions release/scripts/mgear/shifter/component/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2350,6 +2350,13 @@ def gather_transform_info(self, obj):
temp_dict_rotation["z"] = world_rotation.z
trans_info["WorldRotation"] = temp_dict_rotation

world_matrix = obj.getMatrix(worldSpace=True)
tm = pm.datatypes.TransformationMatrix(world_matrix)
qw = tm.getRotationQuaternion()
trans_info["QuaternionWorldRotation"] = qw

trans_info["RotationOrder"] = obj.ro.get()

return trans_info

# =====================================================
Expand Down

0 comments on commit 547bc51

Please sign in to comment.