Hi All,

I have a problem with a script that I'm really confused by and wondering if anyone has any insight, or could suggest any other way to achieve the same result.

I'm looking in a script to paint a few stokes, export an image using ExportLayer, paint some more strokes, export, rinse and repeat.

EvType: Command CommandID: ExportLayer Idx: -1 Channels: NO Path: "/Users/martin/Desktop/test0003.png"

The odd thing is my script exports the first 2 times, then stops executing on the third, even though the code is identical as far as I can see. I've saved in UTF16 and working on osx and on artrage6.

Attached a simplified script, will need to replace filepath for the save location. This plays and exhibits the problem on a fresh scene.


Many thanks!