Go to documentation repository

Page tree

Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.

Previous page The DoReact method  The DoReactSetup method Next page


Skip to end of metadata
Go to start of metadata

The DoReactSetupCore method is used for changing the parameters of the object. It changes only the specified parameters, leaving other parameters intact.

Method call syntax

 function  DoReactSetupCore(objtype : String,  id : String, param<value>  [, param<value>] : String )

Method arguments

  1. objtype - Required argument. The type of the object whose parameters are to be changed. It takes the following values:  Type – String, range – existing object types.
  2. id - Required argument. Identification number of the object of the type set in the objtype argument. It takes the following values:  Type – String, range – existing identification numbers of the object of the specified type.
  3. param<value> - Required argument. Several arguments of this type can be specified. The parameters of the action.

One parameter has the following syntax:

“param<value>”, where

param – name of the parameter;

value – value of the parameter.

Several parameters have the following syntax:

“param1<value1>,param2<value2>…”.

Elements of the list are separated by commas with no white space.

The param argument can take the following values: Type – String, range – available parameters of the specified action. The value argument can take the following values: Type – String, range – depends on the parameter.

Usage examples

Problem. When Macro 1 starts, set the values of the following parameters of Cameras №1-4: PTZ device number (telemetry_id) and synchronous microphone number (audio_id). The values should 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) + ">");
  }
}