progress bar UI freezes until loop ends in after effects

Explorer ,
Aug 12, 2022 Aug 12, 2022

Copy link to clipboard

Copied

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

Views

34

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

AE 2022

Likes

Translate

Translate

Report

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