Hi,
I have a previously related thread but it seems like Rotate is not an option for the modeling command. So I was wondering if I can hack my way through it.
Manually, you can reset rotate with compensate points with the following method (video illustration also below)
- Enable Axis
- Through the Coordinate Manager (World) set rotation axis to zero. You cant set it through the attribute manager, it won't work.
- Disable Axis.
I tried the following code but it doesn't work
# Select an object
c4d.CallCommand(12102) # Enable Axis
obj[c4d.ID_BASEOBJECT_REL_ROTATION,c4d.VECTOR_X] = 0
obj[c4d.ID_BASEOBJECT_REL_ROTATION,c4d.VECTOR_Y] = 0
obj[c4d.ID_BASEOBJECT_REL_ROTATION,c4d.VECTOR_Z] = 0
c4d.CallCommand(12102) # Disable Axis
Video Link (Unable to post videos on forum)
https://www.dropbox.com/s/6sqvydfhot22uqt/c4d313_reset_rotation_compensate.mp4?dl=0