Notifications
Clear all

[Closed] wheel animation

hi folks, i’m just messing around with maxscript and i have a problem
and i can’t solve it:

i want a rotation script for a wheel that mesures the distance
in space and rotatates accordingly. I will place it in a rotation
script so i can see it realtime.

if i have this solution (and you guys are willing to help me )
i want an ‘override function for animation, so i can adjust the speed.

thx!

(if this solution is posted before i’m sorry but i didn’t find it)

4 Replies

though late, this could be usefull
http://www.cuneytozdas.com/tutorials/maxscript/

thx m8, i’ll dive in to it this week.
Does it also work without a path?

yes it does work with keyframed anim

cheers

This kind of thing can be done fairly easily. One thing to be aware of is that max handles rotations in quats not degrees. If you try to pass a degree value you will fine that the wheel does not behave as you would expect. I wrote a simular script a while ago and I believe I had to convert to rotation angle into radians and then assign that value to the rotation part of a quat that x y z values are set for the axis that you want, quat 0 1 0 0.5. If I remember correctly this will rotate an object 0.5 radians arround the y axis. I am still a not very good at working with quats and it has been a while since I wrote my script so this info may not be completely accurate. Good luck,

-bnvm