How to add shortcut keys to tool extensions
I found it impossible to add shortcut keys for the tools extension of an
I found it impossible to add shortcut keys for the tools extension of an
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.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.