Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Shape Layer’s Repeater to influence Ellipse Size

  • Shape Layer’s Repeater to influence Ellipse Size

    Posted by Pedro Amaral on August 15, 2016 at 6:23 pm

    Hi,

    I have a circular shape layer with a repeater (3 copies on scale).
    As I increase the scale size of the repeater I would like the shape layer’s size to increase that same amount.
    Now to complicate things a little I have an array of other shape layers that are picking up animated values from LEAD layer on top and a delay system controlled through slider controls on a Null object.

    My expression for the shape layer size, for example, looks like this:

    var frameDelay = thisComp.layer(“CONTROLER”).effect(“Delay Pos”)(“Slider”) ;
    var delay = framesToTime(frameDelay) ;
    var itemAbove = thisComp.layer(index-1).content(“Ellipse 1”).content(“Ellipse Path 1”).size;
    var amountx = thisComp.layer(“CONTROLER”).effect(“Amount CircSize”)(“Slider”);
    var amounty = thisComp.layer(“CONTROLER”).effect(“Amount CircSize”)(“Slider”);
    var x = itemAbove.valueAtTime(time-delay)[0] + amountx;
    var y =itemAbove.valueAtTime(time-delay)[1] + amounty;

    [x,y];

    This is how the repeater scale looks like:

    var frameDelay = thisComp.layer(“CONTROLER”).effect(“Delay RepSize”)(“Slider”);
    var delay = framesToTime(frameDelay) ;
    var itemAbove = thisComp.layer(index-1).content(“Repeater 1”).transform.scale;
    var amountx = thisComp.layer(“CONTROLER”).effect(“Amount RepSize”)(“Slider”);
    var amounty = thisComp.layer(“CONTROLER”).effect(“Amount RepSize”)(“Slider”);
    var x = itemAbove.valueAtTime(time-delay)[0] + amountx;
    var y =itemAbove.valueAtTime(time-delay)[1] + amounty;

    [x,y];

    Any ideas on how I could add the increment on the Repeater’s Scale property to the Shape Layer’s Size?

    Thanks in advance!

    Pedro Amaral replied 9 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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