Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions [Scripting] How can I add Animator properties such as (Scale), (Fill Color RGB) to a text layer using extendscript?

  • [Scripting] How can I add Animator properties such as (Scale), (Fill Color RGB) to a text layer using extendscript?

    Posted by Adirai Maji on March 7, 2020 at 3:17 pm

    I want to know how can I add animator properties to a text layer. As far as I’ve searched I can only able to create “Animator 1” group under animator properties in After Effects scripting. I can’t find a way to add properties into it. Can anybody help me to do that?

    This is what I have so far ????

    app.project.activeItem.layer(1).Text.Animators.addProperty("ADBE Text Animator")

    ==================================================================================================
    Thanks in Advance…

    – Adirai Maji

    Adirai Maji replied 6 years, 2 months ago 2 Members · 3 Replies
  • 3 Replies
  • Andrei Popa

    March 9, 2020 at 7:41 am

    Most of the properties:

    var anim = app.project.activeItem.layer(1).Text.Animators.addProperty("ADBE Text Animator");

    //add range selector
    anim("ADBE Text Selectors").addProperty("ADBE Text Selector");

    var animProperties = anim("ADBE Text Animator Properties");

    //Add properties

    //andchorPoint
    animProperties.addProperty("ADBE Text Anchor Point 3D");

    //position
    animProperties.addProperty("ADBE Text Position 3D");

    //scale
    animProperties.addProperty("ADBE Text Scale 3D");

    //skew
    animProperties.addProperty("ADBE Text Skew");

    //skew axis
    animProperties.addProperty("ADBE Text Skew Axis");

    //rotation
    animProperties.addProperty("ADBE Text Rotation");

    //Opacity
    animProperties.addProperty("ADBE Text Opacity");

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 9, 2020 at 7:45 am

    To get more of the matchNames, use rd_gimmePropPath on those properties, after you manually added them.

    Andrei
    My Envato portfolio.

  • Adirai Maji

    March 10, 2020 at 5:38 am

    Thank you so much. It helped.

    ==================================================================================================
    Thanks in Advance…

    – Adirai Maji

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