A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
Keep speed on different spline length
Posted: 29 August 2021 02:05 PM   [ Ignore ]  
Total Posts:  28
Joined  2018-06-06

Hi
Working on mechanical rails system, where objects needs to move at the same speed, on different rails.
ATM i’m using multiple objects with Align to Spline tags, works fine, but can’t figure out how to keep them all at the same speed.

Any ideas or input is much appreciated.

Attached a simple example file.

https://www.dropbox.com/s/exssdp6pivn7kbw/Spline Speed-01.zip?dl=0


Thanks

G

Profile
 
 
Posted: 29 August 2021 03:54 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Gilk,

Thanks for the file and for using DropBox.

The Align to Spline needs a more even source. It gives the space between two vertices the same amount of time. Which you can easily spot in the “beveled” part of your Splines.
The easiest fix is typically to place that Spline into a MoSpline (MoSpline set to Object> Spline), then dragged into the MoSpline> Spline> Source Spline and set to even. I have used here 251 as count (frame 0-250=251 frames). Since we have to set up two different times for each, that is the best setting. For one, alone, that could be the particular total time needed, e.g., 176.

I have placed an XPresso setup to each MoSpline. You get the exact Spline length when you click on a tag (Attribute Manager> Name Field).
Take the longer one first, divided by the frame number it should end (all of that as you have set up with linear keyframe interpolation).
This result is needed to be used as a divider for the other length. In this case, I got 108.529137. If frame snapping is active, this will snap to 109, and without Timeline> Edit> enable Frame Snapping, it will be precise.

Frame 27 will show you if things are in sync so far.

Your file:
https://www.amazon.com/clouddrive/share/QJfJyOZMONAPZn01Quj0YsAvr4b8qTzmarOstCurDeW

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 30 August 2021 08:35 AM   [ Ignore ]   [ # 2 ]  
Total Posts:  28
Joined  2018-06-06

Wow Thanks for that!
Checking it asap.

Gil

Profile
 
 
Posted: 30 August 2021 02:36 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

You’re very welcome, Gil.

Thanks for taking the time.

Enjoy your project

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile