Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Keyframes with Expression

  • Keyframes with Expression

    Posted by Duane Walters on September 10, 2020 at 12:33 pm

    I create lower thirds all of the time.

    Often times I use a simple expression to either hide/show the subline depending on if there is text present in the subline or not…easy enough.

    That looks something like this:

    if (thisComp.layer("subline").text.sourceText.length >0) {

    55

    } else {

    100

    }

    This time, I’m trying to make the headline scale down if there is a subline present, but I’m getting a pesky “expression result must be of dimension 2, not 1” error.

    Does anyone have any suggestions?

    Declan Zimmermann replied 5 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Declan Zimmermann

    September 10, 2020 at 1:32 pm

    Assuming you are applying this expression to the Scale parameter, you need two dimensions, as scale has both x and y properties. So try:

    if (thisComp.layer("subline").text.sourceText.length >0) {

    [55,55]

    } else {

    [100,100]

    }

    See if that fixes it. Slight Smile

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