Skip to main content
jory22086941x0a7
Inspiring
December 4, 2021
Answered

How can I use setValueAtTime to animation this Range?

  • December 4, 2021
  • 1 reply
  • 674 views

I am writing JSX code. How can I animate this property offset of the Range Selector of animators in a Text layer? 

This topic has been closed for replies.
Correct answer jory22086941x0a7

I figure it out, when the unit is set to Index, the code must be like this:

 

englisTopLayer.property("Text").property("Animators").property("animator1").property("Selectors").property("selector1").property("ADBE Text Index Offset").setValueAtTime( 1, 1);

1 reply

Dan Ebberts
Community Expert
Community Expert
December 4, 2021

Not sure what you mean exactly, but maybe like this:

var myLayer = app.project.activeItem.layer("My Text");
myLayer.property("Text").property("Animators").property("Animator 1").property("Selectors").property("Range Selector 1").property("Offset").setValueAtTime(1.0,50);
jory22086941x0a7
Inspiring
December 5, 2021

Thank you very much, the code can be executed,

but when I set this unit to Index, an error will still be reported: because the attribute or parent attribute is hidden