Panes Class
The Panes class describes the list of all pane objects. It can be accessed from ui.panes.
Members[edit]
current
→ td.Pane
(Read Only):
The currently selected pane.
Methods[edit]
createFloating(type=PaneType.NETWORKEDITOR, name=None, maxWidth=1920, maxHeight=1080, monitorSpanWidth=0.9, monitorSpanHeight=0.9)
→ td.Pane
:
Return a floating pane.
- type - (Keyword, Optional) Type of pane created. See Pane for examples.
- name - (Keyword, Optional) Name of the pane. This value can be used to find the pane in ui.panes.
- maxWidth - (Keyword, Optional) Upper limit on the width of the created window. Specified in pixels.
- maxHeight - (Keyword, Optional) Upper limit on the height of the created window. Specified in pixels.
- monitorSpanWidth - (Keyword, Optional) Specifies window width as a portion of the monitor width.
- monitorSpanHeight - (Keyword, Optional) Specifies window height as a portion of the monitor height.
Example
p = ui.panes.createFloating(type=PaneType.NETWORKEDITOR, name="Output") p.owner = op('/project1/base1')
Special Functions[edit]
len(Panes)
→ int
:
Returns the total number of panes.
a = len(ui.panes)
[index]
→ td.Pane
:
Get specific pane, referenced by string or index.
p = ui.panes[0] p = ui.panes['pane1']
Iterator
→ td.Pane
:
Iterate over each pane.
for n in ui.panes: # do something with n
TouchDesigner Build:
A work area in TouchDesigner's layout that includes the Network Editor and 7 other pane types used for different tasks. The TouchDesigner interface can consist of a single pane, or be split into multiple panes.