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

progress bar UI freezes until loop ends in after effects

Participant ,
Aug 12, 2022 Aug 12, 2022
Hi there,
Below code doesn't show progress in after effects when ran, instead freezes until for loop ends then shows 100% directly. I want it to show progress. Any help?
 
//Sample code
var window=new Window("palette","test",undefined);
var fd=window.add("button",undefined,"test");
var pBar=window.add("progressbar",undefined,"");
window.center();
window.show();
for(var i=1;i<=10;i++){
pBar.value= i*10;
$.sleep(500);
}
/////
 
 
TOPICS
Scripting
180
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
Adobe Employee ,
Sep 15, 2022 Sep 15, 2022

Hi there!

Sorry for the delay in response. Are you still getting an issue? Which version of AE are you using?

 

Let us know.

Thanks,

Kartika

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
Participant ,
Sep 26, 2022 Sep 26, 2022
LATEST

AE 2022

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