Notifications
Clear all
[Closed] Rotate OBJECT only?
Oct 09, 2012 6:20 pm
The maxscript help file has a nice little function to emulate rotation with “affect pivot only” turned on:
fn rotatePivotOnly =
(
local rotValInv = inverse (rotation as quat)
animate off
in coordsys local obj.rotation *= rotValInv
obj.objectOffsetPos *= rotValInv
obj.objectOffsetRot *= rotValInv
)
What I want to know is, what do I need to do in order to rotate an object WITHOUT affecting the pivot?
4 Replies
Oct 09, 2012 6:20 pm
What about something like $.objectoffsetrot *= ((eulerangles 0 0 45) as quat) ?
Oct 09, 2012 6:20 pm
Looks like what I am actually going to want to do is going to be a bit more complicated. I’m trying to set a bone to a different axis order, but still have its orientation be the same as before the change. Is there any way to do this?
Oct 09, 2012 6:20 pm
I think you have to move vertex position. It should be slower for hight polygon