Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions ValueAtTime Scale and Index

  • ValueAtTime Scale and Index

    Posted by Nawaz Alamgir on August 1, 2020 at 4:14 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!

    Nawaz Alamgir replied 5 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    August 2, 2020 at 1:54 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);

  • Nawaz Alamgir

    August 2, 2020 at 5:24 pm

    thanks , that did the job

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy