Go to documentation repository
Page History
The GetLinkedObjects method is used to get the list of objects linked to the specified camera using the Objects connection link object (see the Administrator's Guide, Connection of objects with cameras section).
Syntax for method invocationMethod call syntax:
| Code Block |
|---|
function GetLinkedObjects(type1 : string, id : string, type2 : string) |
Method argument:
- type1 – is the type of object for which you want to return the linked objects are to be returned.
- id – is the identification number of an object for which you want to return the linked objects are to be returned.
- type2 – is the type of linked objects which are you want to be returnedreturn. If empty string is sent then , linked objects of all types will be returned.
Example.
The Objects connectionlink object is configured in the following way:
Display in the debug window the list of objects linked with the to camera 1.
| Code Block |
|---|
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.
Overview
Content Tools