Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

UI GUI not updating on window.update();

$
0
0

I have progress indicator - counter.

var counter = new Window("palette");
counter.prompt = counter.add("statictext",[0,0,180,20]);
counter.prompt.text = "Script is running";

 

 

In my script i have cycle "for"

 

for (i = 8; i <= NumOfStrings; (i = (i + 5))) { в
counter.prompt.text = ("Processed " + i+" / " + NumOfFrames + " frames");
counter.update(); 
// Main operations of "for" cycle
}

 

So, the problem is:

Counter not updating as planned (1/10, 2/10, 3/10, ... 10/10)

Counter acts 1/10 -> 10/10.

 

So its not update value. How to fix it?


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>