Notifications
Clear all

[Closed] Obtaining "world rotation" on reset Xform object

Is there a way to go under the hood in max, and see what an objects rotation is after you have reset the tranfroms?

For example, create a box, rotate in 45 degrees in the X direction. Reset Transforms.

Is there a way to see that the object is actually rotate 45 degrees anymore, or is that information now lost forever?

Thanks

6 Replies
2 Replies
(@bobo)
Joined: 1 year ago

Posts: 0

Assuming you are talking about Hierarchy Tab > Pivot > Reset > Transform, then

*Create a box
*Rotate at 45 degrees about X
*Call
$.transform.rotationpart
(quat -0.382683 0 0 0.92388)
$.objectoffsetrot
(quat 0 0 0 1)

*Press Reset > Transform
*Call
$.transform.rotationpart
(quat 0 0 0 1)
$.objectoffsetrot
(quat -0.382683 0 0 0.92388)

As you can see, the rotation part has been offset from the node’s rotation into the object offset matrix which describes the offset of the object relatively to its pivot.
At this point, the world rotation of the node is zeroed out (that’s what the feature does), but the object is rotated at 45 degrees about its pivot to remain in the same orientation.

If you are using the Reset XForm Utility, then the rotation is moved to the modifier stack and is in the XForm modifier’s gizmo transformation matrix. But I assume you meant the Hierarchy tab tools…

(@magicm)
Joined: 1 year ago

Posts: 0

I never really use the Reset Transform/Scale buttons so I assumed you were talking about the Reset XForm utility. Reset XForm -> Collapse stack kills any information about an objects rotation, which is what I usually want

Martijn

3dsmax does not store the node’s transform matrix before resetting, so it’s indeed gone forever…

Martijn

 eek

you could use edge vertex information, against a reference box? work out the angles with dot/cross products?

 PEN

You might want to have a look at this tool as it allows for resetting xform and keeping the rotation of the object.

http://paulneale.com/scripts/resetXform/PEN_resetXform.htm

Yes i was refering to the one in the utility…and then we usually collapse down to mesh’s. So as Martijn said, it seems to be lost forever. I had thought of using vertex information…but if the mesh count’s were different…for example, one was updated…then that would cause some problems.

I didn’t know about the Hierarchy Tab > Pivot > Reset > Transform

whats the difference between the 2 tools?