Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I use setValueAtTime to animation this Range?

Community Beginner ,
Dec 04, 2021 Dec 04, 2021

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

TOPICS
Expressions
546
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Dec 04, 2021 Dec 04, 2021

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);

Translate
Community Expert ,
Dec 04, 2021 Dec 04, 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);
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2021 Dec 04, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2021 Dec 04, 2021

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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2021 Dec 05, 2021
LATEST

Nice solution.  And thank you for coming back to update everyone.  It means the next person struggling with this will have an answer.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines