Go to documentation repository
The DoReactSetupCore method is used to change the parameters of the system object. The method changes only the specified parameters of the object, leaving other parameters unchanged.
Syntax for method invocation:
function DoReactSetupCore(objtype : String, id : String, param<value> [, param<value>] : String )
Method arguments:
Syntax for setting a value to a parameter corresponds to a string:
“param<value>”, where
param is a name of the parameter;
value is a value of the parameter.
Syntax for setting a value to several parameters corresponds to a string:
“param1<value1>,param2<value2>…”.
Elements of the list are separated by commas without spaces.
Possible values of the param argument: String type, range is limited by the available parameters of the specified reaction. Possible values of the value argument: String type, range depends on the parameter that you want to set.
Example. On macro 1, set the values of the following parameters of cameras 1-4: PTZ device number (telemetry_id) and number of the microphone for synchronous recording (audio_id). The values must be equal to the camera numbers plus 1.
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN") { var i; for(i=1; i<=4; i=i+1) { DoReactSetupCore ("CAM", i, "telemetry_id<" + (i+1) +">,audio_id<" + (i+1) + ">"); } }