Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects After Effects Scripting Help!

  • After Effects Scripting Help!

    Posted by Brayden Blythe on March 31, 2024 at 2:55 am

    I need to write a script that creates a text animator with the position and opacity properties applied to it. I have tried many different attempts, but I keep getting this error:

    “unable to execute script at line 7. After Effects error: can not add a property with name “ADBE Text Animator Group” to this propertyGroup, because this propertyGroup is neither an INDEX_GROUP nor a text animator property group.”

    line 7: var animator = selectedLayer.property(“ADBE Text Properties”).addProperty(“ADBE Text Animator”);

    Any solutions to this error would be greatly appreciated!

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

    March 31, 2024 at 12:45 pm

    Try it this way:

    var selectedLayer= app.project.activeItem.selectedLayers[0];
    var myAnimator = selectedLayer.property("ADBE Text Properties").property("ADBE Text Animators").addProperty("ADBE Text Animator");
    var mySelector = myAnimator.property("ADBE Text Selectors").addProperty("ADBE Text Selector");
    var myPositionProp = myAnimator.property("ADBE Text Animator Properties").addProperty("ADBE Text Position 3D");
    var myOpacityProp = myAnimator.property("ADBE Text Animator Properties").addProperty("ADBE Text Opacity");

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