Go to documentation repository

Page tree

Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.

Previous page The GetAction method  The SetParam method Next page

Skip to end of metadata
Go to start of metadata

The GetParam method returns the value of the specified parameter of the MsgObject or Event object.

Method call syntax

 function  GetParam(param: String) : String

Method arguments:

param - required argument. The name of the parameter of the object created using MsgObject (or of the Event object). It takes the following values:  type – String, range – available parameters for the objects of the specified type.


 If the object has no parameter with this name, then the method restores an empty string

Example. When any event from any camera is registered, check from which computer the event comes. If the computer has “WS3” name, create the event copy where the computer’s name is “Computer”.

 if (Event.SourceType == "CAM")
var msg = Event.Clone();
if (msg.GetParam("slave_id") == "WS3")
msg.SetParam("slave_id", "Computer");