Notifications
Clear all

[Closed] LookAt one axis Maxscript?

Thank you for the tip I was able to figure it out, and it works now. This is my first maxscrip and I haven’t really been using controllers before either so some things isn’t so obvious for me.
btw still couldn’t find anything about it in the help.

I’m sorry that I ask so much questions but now I have a really weird problem that I think even you guys finds it weird.

When I rotate Circle012(see images below) then I gets different types of values and I can rotate it to 90 degrees, then when I’m over 90,then it start going down, like lets say I have rotate it to 115 degrees then I get the value 65 and when I have rotation 0 then I get -1.09279e-005 I don’t get it, circle010(green) works like i should.
Any one have an idea of what the problem can be?

(open images in new window/tab for full res)




I have solved it now (kind of) the value -1.09279e-005 is as I got it, is a more exact float value in max 2011 and newer.

and the problem was that when the Y rotation got over 90 degrees then it went to lower values instead of going to something like 110 etc.

I were able to work around that,maybe not in the best way but it works so that’s good.

 PEN

What you are seeing is called Gimble Lock and it a mathematical certainty when extrapolating Euler angles from objects that are rotating. This is not a bug in Max as it exists in all software.

Page 2 / 2