PanelValue Class

From TouchDesigner Documentation
Revision as of 19:00, 21 June 2018 by Markus Heckmann (talk | contribs) (cleaning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A PanelValue describes an instance to a Panel Value. They can be accessed through a component's panel member, and are used in the Panel Execute DAT.


Members[edit]

namestr (Read Only):

The name of the panel value. See Panel Value for the list of possible names. name is a string.

ownerOP (Read Only):

The OP to which this object belongs.

valvalue :

Get or set the panel value.

validbool (Read Only):

True if the referenced panel value currently exists, False if it has been deleted.

Methods[edit]

No operator specific methods.

Casting to a Value[edit]

The PanelValue Class implements all necessary methods to be treated as a number or string, which in this case gets or sets its value. Therefore, an explicit call to eval() or set() is unnecessary when used in a parameter, or in a numeric expression. For example, the following are equivalent in a parameter:

(float)parent().panel.u
parent().panel.u.val
parent().panel.u

# the following are also equivalent
parent().panel.u.val + 1
parent().panel.u + 1

# as are the following
parent().panel.u.val = 0.5
parent().panel.u = 0.5

TouchDesigner Build:

Any of the procedural data operators. OPs do all the work in TouchDesigner. They "cook" and output data to other OPs, which ultimately result in new images, data and audio being generated. See Node.