Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions shape layers with delay

  • shape layers with delay

    Posted by Peter Zeet on October 31, 2012 at 4:44 am

    hi there!
    I want to make several shapes inside a shape layer follow an animation with delay… As the usual follow the leader, but with a bunch of shapes instead of layers.
    So I have this on an ellipse path`s size:

    thisIndex=thisProperty.propertyGroup(2).propertyIndex;
    e=effect("size")("Point");
    d=effect("delay")("Slider")*thisComp.frameDuration*(thisIndex - 1);
    e.valueAtTime(time - d);

    The thing is it works with one group, it follow the Point values with the delay, but when I duplicate the group, has the same delay as the first one, and not offseted

    Any clue? I guess the problem is on the thisIndex?

    Thanks!

    Peter Zeet replied 13 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 31, 2012 at 7:01 am

    I’m guessing you need propertyGroup(3) instead of propertyGroup(2).

    Dan

  • Peter Zeet

    October 31, 2012 at 3:37 pm

    sure! thanks!

    So, if anyone wants to re-create the Radio Waves effect with shape layers, there is a way:
    0.Create a Shape Layer
    1.Add a Slider for the delay, a Point Control (or slider) for the size control, and another for opacity control.
    2.Add an ellipse (or whatever)
    3. animate the Point control and Opacity Slider values as desired.
    3.Add this on the Ellipse Size Property:
    thisIndex=thisProperty.propertyGroup(3).propertyIndex;
    e=effect("size")("Point");
    d=effect("delay")("Slider")*thisComp.frameDuration*(thisIndex - 1);
    e.valueAtTime(time - d)

    4. add this code to the Ellipse opacity:
    thisIndex=thisProperty.propertyGroup(2).propertyIndex;
    e=effect("opacity")("Slider");
    d=effect("delay")("Slider")*thisComp.frameDuration*(thisIndex - 1);
    e.valueAtTime(time - d)

    5.Duplicate the Group as many times as you need to create the waves…

    It is quite time consuming vs. the Radio Waves plugin, but ideal for non pixellated ultra zooms and other custom things (different custom shapes per wave, ecc))

    (and I`m sure there are many ways to make this method faster and cleaner)

    Is very basic, but here is the file, just in case anyone is interested!
    4894_waves.aep.zip

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