JSFL Changes to selection Array Don’t Prompt for Save

When you use JSFL to do something to the selection array, such as

MMExecute("fl.getDocumentDOM().selection[0].x += 50;");

If that’s all you do, saving flash then closing the file won’t keep your changes.
However, modifying objects on stage using things other than selection can provoke a change.

MMExecute("fl.getDocumentDOM().moveSelectionBy({x:0, y:0})");

Is an excellent workaround originally posted at kirupa

Leave a Reply

Your email address will not be published. Required fields are marked *