DispatchAction
Contents
- 1 DispatchAction( action, optionalParameter )
- 2 Action Strings
- 2.1 Take Photo
- 2.2 Select First Preset
- 2.3 Select Last Preset
- 2.4 Select Next Preset
- 2.5 Select Previous Preset
- 2.6 Select All Presets
- 2.7 Deselect All Presets
- 2.8 Select First Channel
- 2.9 Select Last Channel
- 2.10 Select Next Channel
- 2.11 Select Previous Channel
- 2.12 Select All Channels
- 2.13 Deselect All Channels
- 2.14 Set Preset Photo Mode
- 2.15 Set Channel Photo Mode
- 2.16 Set Channel Focused Flag
- 2.17 Set Channel Auto Flag
- 2.18 Set Channel Focus Cue
- 3 Examples
DispatchAction( action, optionalParameter )
- action is a string.
- optionalParameter is a string (only some actions require the optionalParameter).
This function sends a user interface action to the Preset Documentation view. These actions would normally by triggered by clicking on the user interface, i.e. clicking on a toolbar button, or selecting a Preset in the Preset table.
Example.
PresetDocView:DispatchAction("Take Photo")
This would send an action that would be the same as clicking on the camera (Take Photo) button.
PresetDocView:DispatchAction("Set Channel Focused Flag", "True")
This function with an optional parameter would be the same as clicking on the focussed checkbox for a channel, in this case setting the checkbox to it's True state (on).
Action Strings
Take Photo
This action would be the same as clicking on the camera (Take Photo) button. It will behave in the same way, in that it will add the photo to the Preset if the photo mode is set to Preset, and to a Channel if the photo mode is set to Channel. It will fail in the same way as if you clicked on the button if there are insufficient available photos (the maximum is 4 for a Preset or a Channel). :There is no optional parameter.
Select First Preset
Will select the first Preset in the Preset table on the left in the Preset Documentation view. It is the same as if you had clicked on the first Preset in the Preset table. Note that table will not scroll to show the selection.
Select Last Preset
Will select the last Preset in the Preset table on the left in the Preset Documentation view. It is the same as if you had clicked on the last Preset in the Preset table. Note that table will not scroll to show the selection.
Select Next Preset
Will select the next Preset in the Preset table on the left in the Preset Documentation view. If no Preset was previously selected, it will select the first Preset. Note that table will not scroll to show the selection.
Select Previous Preset
Will select the previous Preset in the Preset table on the left in the Preset Documentation view. If no Preset was previously selected, it will not do anything. Note that table will not scroll to show the selection.
Select All Presets
Will select all the Presets in the Preset table on the left in the Preset Documentation view.
Deselect All Presets
Will deselect all the Presets in the Preset table on the left in the Preset Documentation view.
Select First Channel
Will select the first Channel in the Channel table on the right in the Preset Documentation view. It is the same as if you had clicked on the first channel in the channel table. Note that table will not scroll to show the selection.
Select Last Channel
Will select the last Channel in the Channel table on the right in the Preset Documentation view. It is the same as if you had clicked on the last Channel in the Channel table. Note that table will not scroll to show the selection.
Select Next Channel
Will select the next Channel in the Channel table on the right in the Preset Documentation view. If no Channel was previously selected, it will select the first Channel. Note that table will not scroll to show the selection.
Select Previous Channel
Will select the previous Channel in the Channel table on the right in the Preset Documentation view. If no Channel was previously selected, it will not do anything. Note that table will not scroll to show the selection.
Select All Channels
Will select all the Channels in the Channel table on the right in the Preset Documentation view.
Deselect All Channels
Will deselect all the Channels in the Channel table on the right in the Preset Documentation view.
Set Preset Photo Mode
This will set the photo mode so that any image adding, deletion, edit, capture or photo display are for the Preset as opposed to the Channel.
Set Channel Photo Mode
This will set the photo mode so that any image adding, deletion, edit, capture or photo display are for the Channel as opposed to the Preset.
Set Channel Focused Flag
- optionalParameter as string =
True
orFalse
Will set the 'Focussed' checkbox for the selected Channel to on (True) or off (False).
Set Channel Auto Flag
- optionalParameter (string) =
True
orFalse
Will set the 'Auto' checkbox for the selected Channel to on (True) or off (False).
Set Channel Focus Cue
- optionalParameter (string) = Cue Number text. i.e.
424
.
Will set the 'Focus Cue' field of the selected Channels to the string sent as the parameter.
Examples
Setting all channels focused flags to true
The example below will simply set all channels for the selected preset to focused.
PresetDocView:DispatchAction("Select All Channels")
PresetDocView:DispatchAction("Set Channel Focused Flag", "True")