Go to documentation repository
...
List of commands and parameters for the MACRO object is presented in the following table:
Command—command description | Parameters | Description |
"RUN"—performs an action | - | - |
"SETUP"—sets parameters for a macro | name<> | Object name |
flags<> | Flags | |
state<> | Object state | |
hidden<> | «Hidden» flag | |
local<> | «Local» flag |
Properties of the MACRO object are shown in the table.
...
State of the MACRO object | Description |
"NORM" | Normal |
Examples of using events and reaction of the MACRO object:
Set the current position of video camera to preset while performing the macro 1.
Code Block |
---|
OnEvent("MACRO","1","RUN")
{
DoReact("TELEMETRY","1","SET_PRESET","TEL_PRIOR<1>");
} |
Perform macro 2 in case of camera is armed.
Code Block |
---|
OnEvent("CAM","1","ARM")
{
DoReact("MACRO", "2", "RUN");
} |