Itoo Software Forum

Author Topic: Animated Enumerator  (Read 663 times)

BT4215

  • Newbie
  • *
  • Posts: 27
Animated Enumerator
« 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

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1582
Re: Animated Enumerator
« Reply #1 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.



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 tutorial which uses many of the same principles.

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

Kind regards,

Paul
Paul Roberts
iToo Software

BT4215

  • Newbie
  • *
  • Posts: 27
Re: Animated Enumerator
« Reply #2 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