Constant mode is the default for most parameters, and is represented by a grey colour scheme in the value field. Expression mode is used for Python, tscript, or mathematical operations and scripts. Expression mode is represented by a dark grey and light blue colour scheme. Export mode is used to directly reference CHOP channels. It is represented by a light green colour scheme.

    Once hovering over the parameter’s name, click it and it will expand, displaying more information and options, similarly to the diagram below:

    Parameters - 图2

    There are three main elements that are available once a parameter is expanded. The first on the left, is the parameter’s scripting name. This scripting name is needed whenever that parameter is referenced in any of TouchDesigner’s scripting languages. In the above diagram, the scripting name for the Noise CHOP’s Roughness is ‘rough’. Continuing the above example, the Python script to set the Roughness of the above Noise CHOP to ‘1’ would be:

    The second element is the three coloured squares. These squares represent the different modes for the parameter, as discussed above. Operator parameters set to Constant mode are represented by a filled grey square. This parameter can be changed to Expression mode by clicking on the outline of the light blue square. Once clicked, the light blue square will be filled, and the value field to the right will also be coloured to reflect the parameter’s mode.

    To change the parameter’s mode to Export mode, a CHOP channel needs to be dragged and dropped on the parameter, at which point it will take up Export mode’s colour scheme, and the green box will be filled in.

    Parameters - 图4