Notifications
Clear all

[Closed] I need help with rotations along a path

Hi all

I am working on a 3D short film, and I really need help with a problem, that is the 50% of the animation.

The thing:

I need a ball rolling over a 3D surface, in the three axis. If the movement is constant there is not problem. I know the radius of the sphere and the length of the path, and with the formula [length of the circumference = 2pir] I can calculate the number of degrees that the ball must rotate along the path. In this case there is not problem because if the “follow” checkbox is selected in the “path constraint” options there is only need to rotate the ball in one axis, no more.

The problem: 🙁

And here is the problem. The last words talk about how to get it in a CONSTANT movement along the path, and I need a not-constant movement. I need to take control of the percentage of the path covered. In some cases the ball will accelerate and in another slow down the speed.

The possible solution: :applause:

The idea is simple. I think that a simple script must resolve my problem. The script must ask for a path and a sphere, get its length and radius, respectively (if this is a problem, it could be entered by the user) and calculate the rotation of the sphere depending of the percentage of the path covered.

And here is the problem. I’ve never worked with scripts 🙁

If there is anybody who wants to help me I will be really very grateful.

Thanks in advance…

3 Replies
 NSF

Well I think this should solve your problem

http://www.cuneytozdas.com/tutorials/maxscript/

Sure helped me.

 NSF

Now I am not a scripter, I don’t have the slightest idea how to do it but surely with the script that I just found, it must be editable to turn the rotation the other way. Instead of a ball rolling on top of a line, I would like it to roll inside the line. a bit like a small cylinder rolling inside a large cylinder. I only need to do it with splines though. Is there anyone out there who might be able to help with this conundrum?

O_O

REALLY, YOU HEAR ME… REALLY THANKS FOR THIS LINK!!!

NSF, YOU’RE MY HERO!!!

You’re welcome to visit my website at WWW.ALZHEM.COM

And if you need anything related to VRay, advance lighting… or similar, please, e-mail me.