Options Class

From TouchDesigner Documentation
Jump to: navigation, search

The Options class describes the set of configurable UI options. It can be accessed with the ui.options object.


No operator specific members.



Reset all options to their default values.

Special Functions[edit]


Returns the total number of options.

a = len(ui.options)


Get or set specific option given a string index.

v = ui.options['DAT.width']
ui.options['DAT.width'] = 50


Iterate over each option name.

for n in ui.options:
	# do something with n

TouchDesigner Build:

An Operator Family that manipulates text strings: multi-line text or tables. Multi-line text is often a command Script, but can be any multi-line text. Tables are rows and columns of cells, each containing a text string.