Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.

Previous page Next page


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:

function  GetLinkedObjects(type1 : string, id : string, type2 : string)

Method argument:

  1. type1 – the type of object for which linked objects are to be returned.
  2. id – identification number of object for which linked objects are to be returned.
  3. type2 – the type of linked objects which are to be returned. If empty string is sent then linked objects of all types will be returned.

Example.

The Objects connection object is configured the following way:

 

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

 

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

}

 

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

  • No labels