Action: Call Simulation Script
Sym3 Integrator Only.
Call a simulation script - When the simulation is running.
Properties
Name | Description |
---|---|
Function Name |
The name of the Simulation Script (JavaScript) function to call. If the function doesn’t exist, nothing will happen. |
Parameter |
String value that will be passed as parameter to the function. If more than 1 parameter is required, a technique is to use a CSV string as parameter and parse it in simulation script. |
Example
function Color(caller, parameter)
{
caller.SurfaceColor = "Sym3 Red"
LogDebug("caller = " + caller.SurfaceColor );
LogDebug("parameter = " + parameter);
}