Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Combine multiple actions into one command

Contributor ,
Jan 22, 2023 Jan 22, 2023

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:

Multoman_0-1674393969286.pngexpand image

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:

Multoman_1-1674394031902.pngexpand image

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?

TOPICS
Code , Exchange extensions
727
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

what's sa3 and what's the swf panel?  do you mean as3 and the actions panel?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

Yes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

and are you trying to create a custom component?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

not that i know of.  but why bother?

 

ie, why not clear the panel after each test?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

i don't understand your work-flow.  perhaps someone else might.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 22, 2023 Jan 22, 2023

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.

Nick - Character Designer and Animator, Flash user since 1998
Member of the Flanimate Power Tools team - extensions for character animation
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

I am with Nick. Use the EDAPT Commands panel It's a great tool. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023
LATEST

Multoman_0-1674452214530.pngexpand image

How did you manage to get the history panel to display team names? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines