Copy link to clipboard
Copied
I have a simple code:
an.getDocumentDOM().getTimeline().create Motion Tween();
an.getDocumentDOM().getTimeline().setFrameProperty('easeType', 5, -1, 90);
If I run it through a jsfl file, then the history panel will display:
If I write the same code using AS3:
MMExecute("an.getDocumentDOM().getTimeline().createMotionTween(); an.getDocumentDOM().getTimeline().setFrameProperty('easeType', 5, -1, 90); ");
Other information will be displayed on the history panel:
The problem is that my code must be written using AS3 in the SWF panel, it can be large and can perform many actions, thereby clogging the history panel with unnecessary actions. And if I want to cancel the script action, I need to press Ctrl+z a lot of times.
How do I combine many actions into one so that only (Run Command) is displayed on the history panel?
Copy link to clipboard
Copied
what's sa3 and what's the swf panel? do you mean as3 and the actions panel?
Copy link to clipboard
Copied
Yes
Copy link to clipboard
Copied
and are you trying to create a custom component?
Copy link to clipboard
Copied
I have a plugin, a SWF panel with buttons. When I click on one of the buttons, the script is executed. But the history panel does not display (Run Command), but a sequence of actions (Cut, open, paste, copy,...) How to avoid this? Maybe there is some kind of object or a clever way to get around such a feature?
Copy link to clipboard
Copied
not that i know of. but why bother?
ie, why not clear the panel after each test?
Copy link to clipboard
Copied
The problem is that the history panel saves a limited number of actions (300 in total). And a team can perform 600 actions. This means that I will not be able to roll back to the actions that did manually
Copy link to clipboard
Copied
i don't understand your work-flow. perhaps someone else might.
Copy link to clipboard
Copied
Why not use EDAPT Commands panel and just add your JSFL command as a custom entry there?
Then you will have your button, but it will run with one undo step only.
Copy link to clipboard
Copied
I am with Nick. Use the EDAPT Commands panel It's a great tool.
Copy link to clipboard
Copied
Your plugin is really an ingenious development, which I use very oftenю. EDAPT Commands does not suit me, since I created my own panel, it is similar to SMR Helpers. And just in SMR Helpers, the command is displayed in the history panel as (run Command ) How did you and Vladin achieve such a result?
Copy link to clipboard
Copied
How did you manage to get the history panel to display team names?