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?