JavaScript in Program

This patch executes a JavaScript with an arbitrary number of input / output parameters.

The “main” function of the patch is executed, taking as input the input ports and returning an objects whose properties correspond to the output ports

Note that only the core JavaScript classes are supported: Boolean, Number, String, Math, Object, Array, Date and RegExp.

The script always gets executed first for error check with all input ports set to null (null for structures and images, 0 for numbers, empty string for strings). Check the _testMode global boolean to detect that initial pass.

Input Attributes
  • inputNumber [0]
  • inputNumber [1]
Output Attributes
  • outputNumber
0 videos
0 comments
Bf9a01b6ccc05dea53134f59ff712fee