PDA

View Full Version : isolating eulerAngle rotation values for operations?


DirtROBOT
03-12-2004, 01:33 AM
If I grab $foo.rotation as eulerAngles, and $fuz.rotation as eulerAngles
is it possible to subtract the euler x values ($foo.x - $fuz.x) and apply this value to another object's .x rotation?

I'm pretty new to maxScripting so forgive this stupid question :)

The whole quat <-> euler thing is quite a knot to untangle...

Thanks!
DR

DirtROBOT
03-12-2004, 01:41 AM
Might have figured it out...does this sound proper?

local blah = $foo.rotation as eulerAngles
local blah2 = $fuz.rotation as eulerAngles
local Xdiff = blah.x-blah2.x

magicm
03-12-2004, 02:37 AM
This should do it (although i think this will only work if an "XYZ" type controller is applied to the rotation)
$foo.rotation.x_rotation - $fuz.rotation.x_rotation

- Martijn

DirtROBOT
03-12-2004, 02:59 AM
Hey thanks for that tip :)

CGTalk Moderation
01-17-2006, 05:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.