Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions source text as empty

  • source text as empty

    Posted by Quico Encinias on March 1, 2012 at 1:25 am

    Im trying to have a solid layer look at the Source Text of a text layer. If the text layer is empty (meaning its blank with no characters) then i want the solid to move to a certain position. If there is any text at all it would stay put.
    What is the syntax for an empty source text. This is what i have.
    UPDATED- i forgot to have == in the if statement instead of =
    textlayer = thisComp.layer("tsttext").text.sourceText
    if (textlayer == "" ){
    [960,840]
    }else{
    position
    }

    Dan Ebberts replied 14 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    March 1, 2012 at 2:08 am

    Your expression works for me.

    Dan

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