Go to documentation repository
Page History
...
Code Block | ||
---|---|---|
| ||
function SetObjectParam(objtype: String, id: String, param : String, value : String) |
...
Code Block | ||
---|---|---|
| ||
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN") { var i; for(i=1; i<=4; i=i+1) { if (GetObjectParam("CAM", i , "color") == "0") { SetObjectParam("CAM", i, "color", "1"); } } } |
...
Info | ||
---|---|---|
| ||
If the object is active when the script is started (that is the settings panel of this object is open), then object parameters can not be changed by the SetObjectParam method. For example, if the settings panel for the Camera 1 object is open and the script above is started, the operation mode of Camera 1 will not be changed for the color one. |
Overview
Content Tools