ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Is there a way to add easing with a slider using a index+1 value?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
ricardo martins
Is there a way to add easing with a slider using a index+1 value?
on Sep 26, 2019 at 9:48:53 pm

Hi there,

I'm trying to make a bunch of lines reveal with trim paths in sequence.
They all follow the movement from the main line and have a controller slider that delays each one based on the layer below, making a cascading effect.

thisComp.layer(index+1).content("Trim Paths 1").end.valueAtTime((time - (thisComp.layer("Controler").effect("Delay")("Slider")/600)))


Something like this
https://imgur.com/a/yaZOEKA

The middle one is the main, the right ones use index-1 and the left ones, index+1

I was wondering if is there a way to add some code control the distance of each copy with a slider to give a cascading effect?
I tried like multiplying / dividing the whole thing but then the copies wouldnt go all the way to the top of the screen.

If you guys need to see what's going on the .AE is here
https://www.dropbox.com/s/hpamyhs4k3vv6gq/demo_lines.aep?dl=0

I'm very noob on expressions and I'm really struggling with this part.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]