ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Animation starts to work only when another property reaches an established value

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Kalleheikki Kannisto
Re: Animation starts to work only when another property reaches an established value
on May 15, 2018 at 5:04:00 pm

Whether you want to use time or a slider value to drive the animation makes little difference.

What the issue is is that with different text lengths you need to adjust the range selector starting and ending points taking into account both the length of the current line AND the combined length of all three lines. You want to progress evenly along the combined length, so you need to know the proportion of the current layer text length to the combined text length to adjust the timing.

So, if you look at the slider value from 0 to 100 (or time value from 0 to 3 for instance, that you can remap to the range of 0-100 (%) with the linear expression), you need to know what the 0 to 100 points for the three consecutive layers are along that time scale.

Let's take three random values for the line lengths: 15, 9 and 22. The combined length is 15+9+22 = 46. So 46 represents 100(%)

Consequently, the relative points at which the three different lines go from 0 to 100 are 0, 15, 24 and 46. Follow so far?

Turned into percentages -- i.e. remapped into the 0-100 range -- these points become 0, 15/46*100, 24/46*100 and 100.

Does this help you figure out the expressions?

Kalleheikki Kannisto
Senior Graphic Designer


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]