Understanding Multifunction commands

In v.2 and 2.5 of EDAP Tools we've had a few multifunction commands, but they were the exception rather than the norm.
Practice has shown that this is a good flexible solution to delivering richer functionality in a smaller footprint.

Since v.3 multifunction commands have become our preferred method of bundling logically related actions.

This article is intended to remove all confusion about what can be done by the end user to customize these commands to better suit their needs and how.

Types of commands and modifier keys

There are generally two types:

Type 1
A command which performs different actions depending on user selection.
(Timeline Block To Symbol is such an example – if the timeline selection spans across only one frame, it behaves in one way; if the selection is a block of frames, it does something else.)
In this case the user calls the function with the same shortcut and depending on their selection one or the other block of code is executed.

Type 2
A command which has multiple functions built into it and they can be triggered by calling the command with different shortcuts.
(Create Magnet Target Or Center Marker (SMR) is an example. Shift+`(tilda/~ key) creates Magnet Targets and Alt+`(tilda/~ key) creates Center Markers.)

Type 1 commands can be run from the Commands menu and don't need keyboard input to access their full range of functionality.

Type 2 commands, however, would only perform the default action if called by clicking on their menu entry in the Commands menu. All other functions need additional keyboard input, i.e. a modifier key to be pressed during command execution.
If we use Create Magnet Target Or Center Marker (SMR) again as an example, selecting the command from the menu will result in the creation of a Magnet Target, but to be able to create a Center Marker we need to hold down Alt. This can be done before clicking on the menu item (i.e. holding down Alt at the same time as you choose the command from the menu) or ideally via an assigned shortcut.

Type 2 commands listen for a modifier key.
Create Magnet Target Or Center Marker (SMR) listens for Alt+(assigned key) to differentiate between the two modes.

Customizing your shortcuts

If for some reason you are not happy or comfortable using the EDAPT Keyboard Shortcuts, you can assign your own, keeping in mind this simple rule:
You can use any key as long as the modifiers stay the same.

For example:
Create Magnet Target can work with (any key) or combination – say Shift+9
Create Center Marker can work with Alt+(any key) – say Alt+B
Both of these shortcuts have to be assigned to the same command, i.e. Create Magnet Target Or Center Marker (SMR) should be associated with two separate shortcut combinations.

With Flash CC and Animate you can do this via the program's dialog.
In 8-CS this can only be done by editing the shortcuts file in a text editor as described in this article.

Some of the commands combine Type 1 and Type 2 to achieve even more complex and flexible interaction.
Smart Transform (SMR) is one such example. There are 3 different shortcuts assigned to the command, but depending on user selection each of these trigger slightly different functionality as described here.

More information regarding Flash / Animate shortcuts can be found across various articles on this site.
Last update: April 2018

No comments yet.

Leave a Reply