Go to documentation repository
GetObjectParams method is designed for getting the object’s parameters.used to get the parameters of an object.
Syntax for method invocationMethod call syntax:
| Code Block | ||
|---|---|---|
| ||
function GetObjectParams(objectType : String, objectId : String) |
Method arguments:
Example. It is necessary to On macro 1, check the color control of camera №2 upon the start of Macros№12. If camera 2 is a color one, set it to recording.
| Code Block | ||
|---|---|---|
| ||
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", "");
}
} |