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

How to add shortcut keys to tool extensions

Contributor ,
Mar 14, 2023 Mar 14, 2023

I found it impossible to add shortcut keys for the tools extension of an

TOPICS
ActionScript , Code , Exchange extensions , Missing feature
2.0K
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

correct answers 1 Correct answer

Engaged , Mar 15, 2023 Mar 15, 2023

OK, you could use a JSFL command to select the tool you want.
The command can be triggered with a key of your choice from the keyboard.

I'll use the PolyStar tool as an example, but assume it's any script you want:


1. Go to the Tools folder in Animate and find the PolyStar.jsfl file.

2. Open it and find the configureTool() function.

 

3. Pay attention to the line
    theTool.setToolName("polystar");
    and write down the name in the parentheses.

 

4. Go to the Commands folder in Animate and create a file

...
Translate
Community Expert ,
Mar 14, 2023 Mar 14, 2023

you're trying to add shortcut keys to what?

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 ,
Mar 14, 2023 Mar 14, 2023

keyDown()

function keyDown() {
fl.trace("key " + fl.tools.getKeyDown() + " was pressed");

 

keyUp()

function keyUp() {
fl.trace("Key is released");
}
}

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 ,
Mar 14, 2023 Mar 14, 2023

i don't think actionscript is going to help with this question.

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 ,
Mar 14, 2023 Mar 14, 2023
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 ,
Mar 14, 2023 Mar 14, 2023

@JoãoCésar 

 

you think that's what the op was asking for?

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 ,
Mar 14, 2023 Mar 14, 2023

Can you tell me how to use it

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
Engaged ,
Mar 15, 2023 Mar 15, 2023

Please provide more clarity on what type of extension you are interested in:

  • SWF panel
  • CEP panel
  • JSFL command
  • JSFL tool

 

- Vlad: UX and graphic design, Flash user since 1998
Member of 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
Contributor ,
Mar 15, 2023 Mar 15, 2023

Custom Tools in the toolbar

截屏2023-03-16 上午12.12.20.png

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
Engaged ,
Mar 15, 2023 Mar 15, 2023

OK, we clarified that we're talking about a JSFL tool.
Now we need to figure out exactly what the problem is:

- You want to bind a custom keyboard shortcut to quick select (activate) the tool in the tool palette.
- Or you developing the tool yourself and want to implement different actions when a certain keyboard keys are pressed


- Vlad: UX and graphic design, Flash user since 1998
Member of 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
Contributor ,
Mar 15, 2023 Mar 15, 2023

I need to bind a custom keyboard shortcut to quickly select (activate) a tool in a tool palette.

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 ,
Mar 15, 2023 Mar 15, 2023

that was what i thought you were asking.

 

use edit > keyboard shortcuts > tools > ... 

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 ,
Mar 15, 2023 Mar 15, 2023

The installed tool plug-ins are not displayed in the shortcut keys

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
Engaged ,
Mar 15, 2023 Mar 15, 2023

OK, you could use a JSFL command to select the tool you want.
The command can be triggered with a key of your choice from the keyboard.

I'll use the PolyStar tool as an example, but assume it's any script you want:


1. Go to the Tools folder in Animate and find the PolyStar.jsfl file.

2. Open it and find the configureTool() function.

 

3. Pay attention to the line
    theTool.setToolName("polystar");
    and write down the name in the parentheses.

 

4. Go to the Commands folder in Animate and create a file called SelectPolyStar.jsfl.

 

5. Write the following code in it:
   fl.selectTool("polystar");
   and save it.

 

6. In Animate, open Edit > Keyboard shortcuts > Commands, select SelectPolyStar and assign a keyboard key you want.

 

 

- Vlad: UX and graphic design, Flash user since 1998
Member of 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
Contributor ,
Mar 16, 2023 Mar 16, 2023
LATEST

grateful! perfect solution

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