Go to documentation repository
Page History
The GetObjectChildIds method returns IDs of child objects of specified type created under given object.
Method call syntax
Code Block | ||
---|---|---|
| ||
function GetObjectParentId(parent : String, id : String, objtype : String) : String[] |
Method arguments:
- 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.
- 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.
- 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.
Code Block | ||
---|---|---|
| ||
if (Event.SourceType == "MACRO" && Event.Action == "RUN" && Event.SourceId == "1") { var children = GetObjectChildIds("SLAVE","S-UYUTOVA","CAM")); for (i=0; i=i+1; i<children.length) { DoReactStr("CAM",children[i],"ARM"); } } |
Overview
Content Tools