Go to documentation repository
GetObjectParams method is used to get the parameters of an object.
Syntax for method invocation:
function GetObjectParams(objectType : String, objectId : String)
Method arguments:
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", ""); } }