Go to documentation repository
GetObjectIds method is responsible for receiving identifiers from all objects of a specified type.
Syntax for method invocation:
function GetObjectIds(objectType : String)
Method arguments:
A string is returned:
CAM||COUNT|id.3<5>,id.count<4>,id.0<2>,id.1<3>,id.2<4>
where
Example. On Macro 1, all cameras must be armed.
if (Event.SourceType == "MACRO" && Event.SourceId && Event.Action == "RUN") { var msg = CreateMsg(); msg.StringToMsg(GetObjectIds("CAM")); var objCount = msg.GetParam("id.count"); var i; for(i = 0; i < objCount; i++) { DoReactStr("CAM", msg.GetParam("id." + i), "ARM", ""); } }