Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scripting – Text layer properties

  • Scripting – Text layer properties

    Posted by Nick Leigh on November 30, 2010 at 4:54 pm

    IS there a way to change the color, size, bold, italics, etc of a text layer when you add it through scripting?

    I have this to add the layer but need to be able to change the properties of it as well.

    var theTime = myComp.layers.addText("10:00");
    theTime.name = "Score Clock";
    theTime.position.setValue([1554,124]);

    Thanks Nick

    Dan Ebberts replied 15 years, 5 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    November 30, 2010 at 5:32 pm

    As of CS4, you can change the font, size, fill & stroke colors and stroke width. CS5 added tracking to the list. See Todd Kopriva’s blog for the full list:

    https://blogs.adobe.com/toddkopriva/2008/12/after-effects-cs4-scripting-ch.html

    Dan

  • Nick Leigh

    December 1, 2010 at 2:25 pm

    Hey Dan,

    Thanks for the link. It was exactly what I was looking for. Do you know if there is anyway to set the font to Italics? That was covered in Todd’s post.

    Nick

    CS5 Production Suite

  • Dan Ebberts

    December 1, 2010 at 2:30 pm

    As far as I know, there isn’t a way to do that.

    Dan

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