Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
Previous page Next page
GetObjectParams method is used to get the parameters of an object.
Syntax for method invocation:
function GetObjectParams(objectType : String, objectId : String)
Method arguments:
- objectType is a required argument. It specifies the type of the system object (CAM, GRAY, GRABBER, and so on) for which you want to return the type of the parent object. Possible values: String type, range is limited by object types registered in the system.
- objectId is an object’s identifier. Possible values: String type.
Example. On macro 1, check the color control of camera 2. If camera 2 is a color one, set it to recording.
if (Event.SourceType == "MACRO" && Event.SourceId && Event.Action == "RUN")
{
var msg = CreateMsg();
msg.StringToMsg(GetObjectParams("CAM", "2"));
if(msg.GetParam("color") == "1")
{
DoReactStr("CAM", "2", "REC", "");
}
}
Overview
Content Tools