Long title for a simple idea. There may be dozens of ways to do this, some more efficient than others.
I’d like to script it and I’m assuming that I could leverage a custom attribute with some maxscript inside but, as Jon Mulaney once said, “I am often wrong”.
Put in simple terms, it’s the box rolling challenge but the box doesn’t need to ever tip over fully in any given direction. You would change the pivot based on which edge of the box you want to be the axis of rotation. One transform is the control (CTRL). Depending on if rotation is positive or negative in X or Y, the pivot changes to the position of a Point Helper in the scene (P1, P2, P3, P4).
I’d like to be able to key rotation on the CTRL node and also see it’s effects interactively in viewport.
What’s my best approach?