ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

ValueAtTime Scale and Index

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nawaz Alamgir
ValueAtTime Scale and Index
on Aug 1, 2020 at 4:14:31 pm

I have this code
x=thisComp.layer(index+1).transform.scale[0] + thisComp.layer("CONTROL").effect("Gap")("Slider");
y=thisComp.layer(index+1).transform.scale[1] + thisComp.layer("CONTROL").effect("Gap")("Slider");
[x,y]


which looks at the layer below and increases the scale by the value defined by a slider

but i would like to also add this code and combine the two so they work together.
delay = 5;
d = delay*thisComp.frameDuration*(index + 1);
a= thisComp.layer("Shape Layer 1").transform.scale.valueAtTime(time - d)[0];
[a,a]


basically so i can create a ripple effect. How can i do this?

Thanks!


Return to posts index

Filip Vandueren
Re: ValueAtTime Scale and Index
on Aug 2, 2020 at 1:54:26 pm

If I understand correctly:


gap = thisComp.layer("CONTROL").effect("Gap")("Slider").value;
delay = 5;
d = delay*thisComp.frameDuration*(index + 1);
a= thisComp.layer("Shape Layer 1").transform.scale.valueAtTime(time - d);

a + [gap, gap] * (index + 1);




Return to posts index

Nawaz Alamgir
Re: ValueAtTime Scale and Index
on Aug 2, 2020 at 5:24:39 pm

thanks , that did the job


Return to posts index

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