Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Fleko preset: Solve 13 expressions errors

  • Dan Ebberts

    May 4, 2020 at 12:17 am

    You can quickly fix everything by switch to the Legacy ExtendScript expression engine:

    File > Project Settings > Expressions

    If you want to fix them for the JavaScript engine, change all instances of radians_to_degrees to radiansToDegrees, and change all the single-line if/else statements to multi-line:

    e.g. change:

    if ( Mat == 1) mTol else 255;

    to:

    if ( Mat == 1)
    mTol
    else
    255;

    or use brackets:

    if ( Mat == 1) { mTol } else { 255 };

    or use the ternary operator

    Mat == 1 ? mTol : 255;

    Dan

  • Nick Mara

    May 4, 2020 at 12:44 am

    Dan, thanks a million for your help !!!
    All of your suggestions work like a charm, wow !!

    Last week I posted a new thread but anybody answered, so you could possibly be the One again ☺
    https://forums.creativecow.net/thread/227/44700
    If you could solve this, I think that it would be a revolution for me and for many others AE users for sure.
    Thanks again

    Nick Mara

  • Nick Mara

    May 4, 2020 at 12:45 am

    Dan, thanks a million for your help !!!
    All of your suggestions work like a charm, wow !!

    Last week I posted a new thread but anybody answered, so you could possibly be the One again ☺
    https://forums.creativecow.net/thread/227/44700
    If you could solve this, I think that it would be a revolution for me and for many others AE users for sure.
    Thanks again

    Nick Mara

  • Dan Ebberts

    May 4, 2020 at 2:05 pm

    >is it possible to resize a composition with an expression?

    No. An expression can’t change anything except the value of the property hosting the expression. That tutorial shows you how to set up expressions to automatically resize things when you change the comp size.

    Dan

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