Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Set sourceText of another layer?

  • Set sourceText of another layer?

    Posted by James Huenergardt on October 20, 2023 at 4:17 am

    Not sure this is possible, but let’s say I’m wanting to ‘set’ the Source Text from another layer WITHOUT putting an expression in the sourceText of the layer I want to change.

    So, something like thisComp.layer(1).sourceText = “hello world”;

    So setting the sourceText as you would initialize a variable.

    Is that even possible, or is the sourceText read only?

    Thanks,

    Jim

    James Huenergardt replied 1 year, 2 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    October 20, 2023 at 6:08 am

    An expression can only change the value of the property where that expression exists, so no, you can’t change a layer’s source text from an expression applied somewhere else.

  • Tom Morton

    October 20, 2023 at 8:09 am

    fascinated to know where this would be useful though…

  • James Huenergardt

    October 20, 2023 at 12:00 pm

    Thanks! I’m just a former database/application programmer trying to figure out what I can and can’t do.

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