Parameter



PARAMETER name, value

The PARAMETER command defines the name and numerical value of a constant which can subsequently be used in the place of any numerical value. This named parameter is also automatically exposed to OpticStudio as a user definable parameter. Changing or optimizing the parameter in OpticStudio will rebuild the entire object with the new value, and any value defined in OpticStudio will override the value in the script. The script value will only be used as the "default" value the first time the script is loaded into an NSC object. Parameters may not be defined using values from previously defined declarations or computations. Only direct numerical values are allowed. The parameter name will appear in the NSC Editor and the value may be changed as any other parameter value for any object.

Next: