Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The GetObjectChildIds method returns IDs of child objects of specified type created under given object.

Method call syntax

function  GetObjectParentId(parent : String, id : String, objtype : String) : String[]

Method arguments:

  1. parent - Required argument. The type of the object for which you want to find out child objects . 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 parentargument. It takes the following values:  Type – String, range – existing identification numbers of the objects of the specified type.
  3. objtype - Required argument. The type of the child objects whose identification numbers should be returned. It takes the following values:  Type – String, range – existing object types.

Example. Arm all cameras on WS2 computer on Macro 1.

if (Event.SourceType == "MACRO" && Event.Action == "RUN" && Event.SourceId == "1")
{
   var children = GetObjectChildIds("SLAVE","DESKTOP-UBOS6BK","CAM");
   ch=children.split(",");
   for (i=0;i<ch.length; i++ )
   {
     DoReactStr("CAM",ch[i],"ARM","");
   }
}
  • No labels