Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › If else expression with else allowing to retain original value

  • If else expression with else allowing to retain original value

    Posted by Diana Govina on November 24, 2015 at 5:54 pm

    Hi everyone,
    I was wondering whether there’s a way to construct if and else with if being for example if(…>10)100 else value ,value allowing the number to be what it is originally unless it’s less then 10, as it’s changing while being pickwipped to another plugin.

    Diana Govina replied 10 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 24, 2015 at 6:28 pm

    If I understand correctly, you already have a pickwhip-generated expression in there. You just need to plug the result of that into a variable (val in this example) and do something like this:

    val = thisComp.layer(“other layer”).transform.position;
    if (… > 10) 100 else val

    Dan

  • Diana Govina

    November 25, 2015 at 1:48 am

    Thank you Dan! worked like a charm

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