Go to documentation repository
Previous page Next page
The GetObjectChildIds method returns the identification (registration) numbers of the objects of the specified type that are below the specified object in the object hierarchy.
Syntax for method invocation:
function GetObjectParentId(parent : String, id : String, objtype : String) : String[]
Method arguments:
Example. On macro 1, arm all cameras on the WS2 computer.
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",""); } }