Options Class

From TouchDesigner 099 Wiki

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


Members

No Options Class specific members.

Methods

resetToDefaults()

Reset all options to their default values.

Special Functions

len(Options)int

Returns the total number of options.
   a = len(ui.options)

[index]float

Get or set specific option given a string index.
   v = ui.options['DAT.width']
   ui.options['DAT.width'] = 50

Iterator

Iterate over each option.
   for m in ui.options:
       # do something with m