I am creating a loop that is generating images and then taking a snapshot of the canvas. Problem is the loops goes to fast to capture a image each time through the loop.
I tried the Wait 0.5*loopindex trick, which solves the above issue, however it breaks any other code I have relying on the loopindex. I don't understand why, but when using that wait statement my Loopindex is always 0 (I tested in console with and without the wait line to confirm).
So is there a way in a loop for it to stop and wait for the Canvas Snapshot to fully complete before moving on?
I'm taking the snapshot in the loop.
Outside the loop I am checking for On Canvas Snapshot and doing all the ajax to save the images to my desktop.
Thanks.