Forum Replies Created

  • Dylan Winter

    November 20, 2012 at 8:44 pm in reply to: Script to change text within expressions

    Seems like a fun challenge. I’m trying to write a script for you right now, but I’m getting hung up on calling all the different possible properties for a layer, given the fact that I can’t predict what plugins you might have expressions on and haven’t found a good way to potential wild cards via script. Would it still be helpful to you if this worked only with transform properties?

  • Dylan Winter

    August 19, 2010 at 2:25 pm in reply to: Selecting and altering a text layer in a script

    Hey Dan, thanks for the quick response!

    I tried the script you posted, but unfortunately it yields the same error message that mine did… that line four cannot be executed because null is not an object. I imagine that there’s something wrong with the way both of us are trying to access the text property of a layer, but I can’t seem to find clear documentation in the Scripting Guide on how to access a layer’s Source Text property.

    What weirds me out is that although the TextDocument object is defined as storing a layer’s Source Text property, it has an attribute (text) which stores the Source Text. What’s not clear to me is whether you can change the (… .value) of TextDocument or if that’s superseded by (… .text)

    There’s also the TextLayer object, which is a subclass of AVLayer and has its own properties (including Source Text).

    Clearly I still have a lot to learn about AE Scripting. I can’t thank you enough for your help (and website) though!

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