Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: BT4215 on April 08, 2015, 07:14:38 PM

Title: Animated Enumerator
Post by: BT4215 on April 08, 2015, 07:14:38 PM
Hi,
I would like to know how to build an enumerator to measure a distance during an animation.
Example:
I have a geometry. I want to animate its dimensions. The numbers must stay at the center of the line. When I stretch the line numbers have to change according to the distance.
<-------123------->
At the start I'll put one arrow, then will follow a segment, 3 digits number, second segment, second arrow.
If I stretch the spline the numbers will change.
How to do it?

regards
Title: Re: Animated Enumerator
Post by: Paul Roberts on April 08, 2015, 08:18:13 PM
Hi,

This is an interesting question. It can be achieved by using some expressions to divide the length of the spline and find the number of 1s,10s,100s,1000s etc. Once this is know the value for each can be wired to a selector operator that picks the correct number. The numbers are then combined in the correct order using a compose operator to give you your final value.

(http://i.imgur.com/lhyK83w.gif)

I've also added a variable scale so that two arrow heads and numbers are not larger than the spline at the beginning of the animation.

Because it uses a few expressions it isn't the easiest of styles to understand, but I would recommend examining the attached file and taking a look at the Counting Numbers  (http://www.itoosoft.com/tutorials/tutorial_counting.php)tutorial which uses many of the same principles.

I hope that helps, please let me know if you have further questions.

Kind regards,

Paul
Title: Re: Animated Enumerator
Post by: BT4215 on April 09, 2015, 10:57:59 AM
Hi,
thank you very much!
fantastic tool!
I can't imagine what we can do with RailClone Pro-

regards