Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions ExtendScript: Add Keyframe to Range Selector?

  • ExtendScript: Add Keyframe to Range Selector?

  • Breton Brander

    January 21, 2023 at 4:23 am

    Hi there!

    I am trying to add a keyframe to this Range Selector using ExtendScript (see attached screenshot)

    This seems simple, but I can’t find any documentation on it.

    Any tips on how add or remove Range Selector keyframes in After Effects with ExtendScript?

    Thank you very much!

  • Dan Ebberts

    January 21, 2023 at 4:47 am

    Like this, I think:

    var kfTime = 1;
    var kfValue = 0;
    var myLayer = app.project.activeItem.layer("My text");
    myLayer.property("Text").property("Animators").property("Animator 1").property("Selectors").property("Range Selector 1").property("Start").setValueAtTime(kfTime,kfValue);
  • Breton Brander

    January 22, 2023 at 12:06 am

    Thanks for the help Dan!

    Your reply helped me figure out that my range selector was set to “Index” and that’s why I couldn’t access it with ExtendScript 🙂 (because the property was ‘hidden’)

    Range Selector Percentage:

    myLayer.property(“ADBE Text Properties”).property(“ADBE Text Animators”).property(“ADBE Text Animator”).property(“ADBE Text Selectors”).property(“ADBE Text Selector”).property(“ADBE Text Percent Start”)

    Range Selector Index:

    myLayer.property(“ADBE Text Properties”).property(“ADBE Text Animators”).property(“ADBE Text Animator”).property(“ADBE Text Selectors”).property(“ADBE Text Selector”).property(“ADBE Text Index Start”)

Viewing 1 - 3 of 3 posts

Log in to reply.

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