Use marking menus
Marking menus are tool sets that pop up as you work. They provide easy access to Shogun Post commands or scripts, regardless of where your mouse is pointing or what you are doing. Custom marking menus are a great way to create groups of commands for common tasks.
The scripts used in marking menus must exist within the directories specified in the Preferences dialog box (General > Preferences), on the Scripts tab within the Directories tab (explained in Set script folder locations).
Shogun Post has three default marking menus: each contains five zones. Each zone has three mouse buttons. Each zone/mouse button combination has positions for eight menu items containing scripts or commands.
You can customize the marking menus by assigning scripts and commands to suit your preferences. You can save marking menu settings to the Shogun Post marking menu file (MarkingMenus.hsl) or create marking menu files of your own. You can use marking menus whenever you want to quickly access assigned scripts or commands.
You may also find it useful to create your own folder for storing any marking menus you create or customize.
To specify the location of the Marking Menu folder:
- Open the Preferences dialog box (see above).
- On the Directories tab, select the Scripts tab and enter or browse to the location in the Marking Menu File field.
Default marking menus
The following tables describe the high-level contents of the default marking menus supplied with Shogun Post. For details of the individual commands in each of these zones, see the Marking Menus tab in the Preferences dialog box as described in Customize marking menus.
Default (Space) marking menu contents
Zone | Left mouse | Middle mouse | Right mouse |
---|---|---|---|
Center | Tracking | — | Parent/Child |
Top | — | — | — |
Left | Capture | — | — |
Bottom | — | — | — |
Right | Solving | — | — |
Ctrl (Ctrl+Space) marking menu contents
Zone | Left mouse | Middle mouse | Right mouse |
---|---|---|---|
Center | — | — | — |
Top | — | — | — |
Left | — | — | — |
Bottom | — | — | — |
Right | — | — | — |
Shift (Shift+Space) marking menu contents
Zone | Left mouse | Middle mouse | Right mouse |
---|---|---|---|
Center | Select Sets | — | — |
Top | — | — | — |
Left | Select Types | — | — |
Bottom | — | — | — |
Right | Hierarchy Selections | — | — |
Customize marking menus
You can customize marking menus by assigning new commands to zones and mouse buttons.
To customize marking menus:
- Open the Preferences dialog box (General > Preferences).
- Select the Marking Menus tab, which contains drop-down lists and location controls.
- From the Select a Marking Menu to edit drop-down list, click one of the default marking menus:
- Default Menu (Space)
- Ctrl Menu (Ctrl-Space)
- Shift Menu (Shift-Space)
- From the Select a zone to edit list, click one of the available zones:
- Center
- Top
- Left
- Bottom
- Right
- From the Select a mouse button list, select the desired button:
- Left Button
- Middle Button
- Right Button
- In Entry label, type the name you want to use for this marking menu.
- Select the Commands button to display the Script Viewer.
- Select the View Style list and select an option for the way you want to view the available menu commands and scripts that can be assigned to marking menus (those that can execute without arguments):
- List: All items listed in alphabetical order.
- Hierarchy: Items grouped into categories of commands: Native Commands, Menu Commands, Plugin Commands, C:/Users/Public/Documents/Vicon/Shogun Post#.#/Scripts, C:/Users/Public/Documents/Vicon/Shogun Post#.#/Layouts, C:/Program Files/Vicon/Shogun Post#.#/Scripts, C:/Program Files/Vicon/Shogun Post#.#/Layouts.
- Category: Items grouped into script categories.
- From the list, select the command or script you want to assign to a marking menu and select OK to close the Script Viewer.
The selected command or script is displayed in the Command string and Entry label fields in the Marking Menu Preferences dialog box. -
Select the button that represents the mouse direction to which you want to assign the command:
- North
- Northeast
- East
- Southeast
- South
- Southwest
- West
- Northwest
The button is highlighted, and the name of the selected command is displayed in it.
Tip: You can replace the default command name displayed in the selected mouse direction field with a custom name by entering a new value in the Entry label field. You can add additional scripts to a single mouse direction by entering a semicolon and a space, and then manually typing in the name of an additional command. Separate each additional script with a semicolon and a space, for example:
rewind; play;
To assign commands to any of the other mouse directions for the currently selected zone and mouse button, repeat steps 6 - 10.
To assign commands to a different mouse button in the currently selected zone, Repeat the procedure from step 5.
To assign commands to a different zone and mouse buttons, repeat the procedure from step 4.
- When you are finished customizing marking menus, select Close to save the changes and close the Preferences dialog box.
Use marking menus
You can access marking menus from anywhere and at any time while you are working with data in Shogun Post. The menu that pops up depends on your current zone and the mouse button that you are using.
To use a marking menu:
Note that the following instructions assume that the default menu has been assigned the Space hotkey, the Ctrl menu has been assigned the Ctrl+Space hotkeys and the Shift menu has been assigned the Shift+Space hotkey. You can find information on how to do this in Set hot keys.
-
In a view pane, display the desired marking menu as shown in the following table. See Marking Menu hot key Table
- Hover the mouse over the right, left, top, bottom, or center zone and then left-click, middle-click, or right-click to view the sets of commands defined for that zone/mouse button.
- Left-, middle-, or right-click the desired mouse direction to run the associated script or command.
Set hot keys for marking menus
If required, you can set or clear hot keys for displaying marking menus, by changing the hot key for showMarkingMenu. For information on how to set hot keys for this and other commands, see Set hot keys in Post in Getting started with Vicon Shogun.
Marking Menu hot key Table
To display this marking menu | Press and hold keys |
---|---|
Default menu (showMarkingMenu command) | Space |
Ctrl menu (showCtrlMarkingMenu command) | Ctrl+space |
Shift menu (showShiftMarkingMenu command) | Shift+space |