Download (right-click and "save as")

#
# @author: Phoenix Integration
# @description: An example ScriptWrapper using groups of variables
#

# declare the variables

setGroup "inputs"
variable: x double input

setGroup "outputs"
variable: y double output # ------------------------------------------ script: language="python" def run(): # get the variables x = wrapper.getVariable( 'inputs.x' ) y = wrapper.getVariable( 'outputs.y' ) # set the output value equal to the input y.setValue( x.getValue() )