Skip to main content
YuK1_Works
Inspiring
September 3, 2023
Answered

How to periodically redraw the script's UI

  • September 3, 2023
  • 2 replies
  • 391 views

I am writing a jsx script.
Is there any way to periodically redraw the UI?
I want to periodically rewrite the StaticText to show the time.

This topic has been closed for replies.
Correct answer YuK1_Works

Resolved.
There was a method called "app.scheduleTask()".
This method could be used to periodically call any function,
As a result, periodic StaticText rewriting is now possible.

2 replies

YuK1_Works
YuK1_WorksAuthorCorrect answer
Inspiring
September 3, 2023

Resolved.
There was a method called "app.scheduleTask()".
This method could be used to periodically call any function,
As a result, periodic StaticText rewriting is now possible.

Mylenium
Legend
September 3, 2023

Unless you add an explicit refresh at the end which will cause major performance issues if you do this a million times per second the UI will only automatically update once a specific command has been triggered that necessitates it. Refer to the Scripting Guide.

 

Welcome to the After Effects Scripting Guide! — After Effects Scripting Guide 22.0.0 documentation

 

Mylenium

YuK1_Works
Inspiring
September 3, 2023

Thank you.
But I wanted to know the specifics.