GetObjectParams method is designed for getting the object’s parameters.
Method call syntax:
function GetObjectParams(objectType : String, objectId : String) |
Method arguments:
Example. It is necessary to check the color control of camera №2 upon the start of Macros№1. 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", "");
}
} |