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 -
Dan Ebberts
January 21, 2023 at 4:47 amLike 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 amThanks 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”)
Log in to reply.