animatorgeek
03-22-2010, 10:28 AM
Does anyone have experience with custom tools? I'm working on one that doesn't draw anything in the document, just rotates and/or moves what's already there. The problem is that when I use it and then press undo, I can only go stepwise through all the steps the tool took in its scripting. This means that one use of the tool ends up producing something like twenty entries in the history panel, not just one. Not only that, but when I do go through the undo process the document often ends up different than how it started! (Seems like a big bug in the undo system -- I may report it through Adobe's bug reporting system)
Does anyone know a way to control the undo system from JSFL? I really want to make it so that each use of this tool will count as one history item, in the same way that running a command from the commands menu creates one history item. As it is now, without an easy undo of what this command does, it doesn't end up being very useful.
Does anyone know a way to control the undo system from JSFL? I really want to make it so that each use of this tool will count as one history item, in the same way that running a command from the commands menu creates one history item. As it is now, without an easy undo of what this command does, it doesn't end up being very useful.