Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The GetLinkedObjects method is used to get list of objects linked to the specified camera using the Objects connection object (see the Administrator's Guide, Connection of objects with cameras section).

Method call syntax:

Code Block
languagejs
function GetLinkedObjects(type1 : string, id : string, type2 : string)

...

The Objects connection object is configured the following way:

 


Display in debug window the list of objects linked with the camera 1.

Code Block

...

code
language
js
if (Event.SourceType == "MACRO")
{
 
varmsgstr = GetLinkedObjects("CAM","1","MACRO")
 
DebugLogString("Linked objects " + msgstr);

}

 

As  As a result the "Linked objects MACRO:1" message will be displayed in the script debug window.