Copy link to clipboard
Copied
I am writing JSX code. How can I animate this property offset of the Range Selector of animators in a Text layer?
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);
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
Nice solution. And thank you for coming back to update everyone. It means the next person struggling with this will have an answer.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now