Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions triggering an animtion with linear wipe

  • triggering an animtion with linear wipe

    Posted by Viliam Snag on May 13, 2012 at 11:21 am

    I wonder if there is a way to trigger an action using linear wipe.
    I have a grid of hexagons each on its own layer and I want to be able to scale them down/up in the style of linear wipe.
    I was thinking there might be a way somehow connecting scale to linear wipe but i couldn’t find anything similar so far. any ideas?

    Viliam Snag replied 13 years, 12 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 13, 2012 at 3:57 pm

    This might get you headed in the right direction. Add a null named “controls”. Add a Slider Control and keyframe it to go from 0 to 100 over a short period. Then apply this expression to the scale property of your hexagons:

    pct = thisComp.layer(“controls”).effect(“Slider Control”)(“Slider”);
    p1 = (transform.position[0]-width/2)/thisComp.width;
    p2 = (transform.position[0]+width/2)/thisComp.width;
    linear(pct/100,p1,p2,[0,0],[100,100])

    Is that close to what you had in mind?

    Dan

  • Viliam Snag

    May 13, 2012 at 9:12 pm

    Dan this is amazing! It is exactly what I was looking for! I wonder if there is a way of adding a little bounce to the scale, and also the possibility of changing the angle of the wipe? That’s why I thought that if it’s possible to get linear wipe effect to control layers scale than you can easily change the direction and the angle of a wipe..
    nevertheless this is a great start!

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