Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make sure object rotation is set in XYZ-Euler coordinates #1142

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions blenderproc/python/types/EntityUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def set_rotation_euler(self, rotation_euler: Union[list, Euler, np.ndarray], fra
:param frame: The frame number which the value should be set to. If None is given, the current
frame number is used.
"""
#Make sure object rotation is set in XYZ-Euler coordinates
self.blender_obj.rotation_mode = "XYZ"
self.blender_obj.rotation_euler = rotation_euler
Utility.insert_keyframe(self.blender_obj, "rotation_euler", frame)

Expand Down
Loading