Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Offset fill effect by a couple frames

  • Offset fill effect by a couple frames

    Posted by Liliana Penagos on April 22, 2016 at 7:49 pm

    Hey guys!

    So Im trying to create a sort of gradient cascade effect on this hexagon kind of shape. I have this first inner shape working with an expression on a null with a fill effect. I have each outer layer as its one shape, I thought this would be easiest. I thought I could maybe have multiple fill effects on the null that each layer would have an expression telling it to follow that and each of the fills would be a couple frames offset off the last one if that makes sense?

    I watched this tutorial for that idea, 2nd technique https://www.creativecongo.com/3-time-offset-techniques/

    I thought I could just tell the 2nd fill effect in the null to offset the time of the one its following but its not working. Is it not just this?

    Thank you! Im sorry Im terrible at expressions but Id like to make this in a way i could easily change the colors that are happening

    Here is the file 10007_hexshape.aep.zip

    effect("Circle_1")("Color")
    Offset = -.5;

    Liliana Penagos replied 10 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 22, 2016 at 8:31 pm

    Assuming that you’re consistent with the Fill Color names (“Circle_2”, “Circle_3”,etc.), this should work:

    leader = effect(“Circle_1”)(“Color”);
    delay = 2*thisComp.frameDuration;
    idx = parseInt(thisProperty.propertyGroup(1).name.split(“_”)[1],10) – 1;
    leader.valueAtTime(time – delay*idx);

    Dan

  • Liliana Penagos

    April 22, 2016 at 8:43 pm

    OMG that worked! I never would have figured that out. Can you explain what each of those lines are doing please?

    Thank you!

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