Go to documentation repository
...
In the Script field, enter the following:
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "MACRO" && Event.SourceId == "1" &&
Event.Action == "RUN")
{
var ;
for(i=1; i<=4; i=i+1)
{
SetObjectParam("CAM",i,"hot_rec_time","10");
}
DebugLogString ("Hello world");
} |
| Note | ||
|---|---|---|
| ||
The script contains an error. See below the recommendations on how to fix it. |
The error message says that there is no identifier in the second line of the variable declaration operator (var). This means that no variable has been declared. This is a critical error in JScript, thus the script has not been executed.
Correct the text of the script (see the “var i;” line).
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "MACRO" && Event.SourceId &&
Event.Action == "RUN")
{
var i;
for(i=1; i<=4; i=i+1)
{
SetObjectParam("CAM",i,"hot_rec_time","10");
}
DebugLogString ("Hello world");
} |
Make sure that the script is done executed correctly. The "Hot record" time field in the Camera 1 to Camera 4 objects' settings panels must have the 10 value.
| Info | ||
|---|---|---|
| ||
The "Hot record" time field in the settings panel of the Camera objects is blank by default. By default, the new script is unavailable for all computers in the distributed system. To make it available, you must set the 0 value for the key ScriptSlavesDefaultNotSelected of the HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\AxxonSoft\AxxonPSIM PSIM registry section (see see Registry keys reference guide. For information on working with the registry, see Working with Windows OS registry). |
...