Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression is happening before it’s supposed to

  • Expression is happening before it’s supposed to

    Posted by David Cabestany on December 17, 2020 at 4:13 pm

    An expression I applied to the opacity in one layer is happening several frames before the layer even begins.

    It’s a very simple expression that fades the layer in and out using its n and out points. The same expression is applied on 4 other layers in the same comp and it works fine, but this one kicks in 19 frames before it’s supposed to.

    This is the code:

    topVal=100

    fadeDur = thisComp.layer(“xp”).effect(“fade”)(“Slider”);

    if (time < (inPoint+outPoint)/2)

    ease(time,inPoint,inPoint+fadeDur,0,topVal)

    else

    ease(time,outPoint-fadeDur,outPoint,topVal,0)

    Any help is appreciated.

    David Cabestany replied 3 years, 8 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    December 17, 2020 at 5:27 pm

    So are you saying the layer starts fading in before the in point? What are the in and out points? The expression looks fine to me.

    Dan

  • David Cabestany

    December 17, 2020 at 7:29 pm

    Yes it fades in (the opacity value goes up, but there’s nothing to show yet because there is no layer at that point).

    Yes, the expression works fine, I’ve used it thousands of times and I’m using it in the same composition with other similar layers (precomps) without issue.

    It’s just this one layer that is misbehaving. The in and out are the beginning and end of the precomp layer, I’m not trimming it in any way, which I’ve done in the past too.


    I think it’s a weird glitch, I will report it to Adobe later today.

  • Dan Ebberts

    December 17, 2020 at 7:38 pm

    My hunch is that there is a logical explanation, but hard to say without seeing how you have things set up.

  • David Cabestany

    December 17, 2020 at 7:46 pm

    I can send you an empty AE project if you want. Let me know.

  • Dan Ebberts

    December 17, 2020 at 9:43 pm

    Absolutely. I’d love to take a look.

  • David Cabestany

    December 18, 2020 at 12:59 am

    Cool, thanks. I have your email somewhere. I’ll email it tonight.

    Thanks!

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