Difference between revisions of "Pane Class"

From TouchDesigner Documentation
Jump to: navigation, search
(Pane Class Auto Create)
Line 8: Line 8:
 
     |class=Pane
 
     |class=Pane
 
     |name=bottomLeft
 
     |name=bottomLeft
     |type=
+
     |type=tuple(x,y,u,v)
 
     |set=0
 
     |set=0
 
     |text=The coordinates of the bottom left corner, expressed in both pixels and uv offsets, in a named tuple.
 
     |text=The coordinates of the bottom left corner, expressed in both pixels and uv offsets, in a named tuple.
Line 15: Line 15:
 
     |class=Pane
 
     |class=Pane
 
     |name=link
 
     |name=link
     |type=
+
     |type=int
     |set=0
+
     |set=1
 
     |text=Get or set the numeric link index.
 
     |text=Get or set the numeric link index.
 
}}
 
}}
Line 22: Line 22:
 
     |class=Pane
 
     |class=Pane
 
     |name=maximize
 
     |name=maximize
     |type=
+
     |type=bool
     |set=0
+
     |set=1
 
     |text=Enable or disable the pane maximize state.
 
     |text=Enable or disable the pane maximize state.
 
}}
 
}}
Line 29: Line 29:
 
     |class=Pane
 
     |class=Pane
 
     |name=name
 
     |name=name
     |type=
+
     |type=str
     |set=0
+
     |set=1
 
     |text=Get or set the pane name.
 
     |text=Get or set the pane name.
 
}}
 
}}
Line 36: Line 36:
 
     |class=Pane
 
     |class=Pane
 
     |name=owner
 
     |name=owner
     |type=
+
     |type=COMP
     |set=0
+
     |set=1
 
     |text=Get or set the component this pane points to.
 
     |text=Get or set the component this pane points to.
 
}}
 
}}
Line 43: Line 43:
 
     |class=Pane
 
     |class=Pane
 
     |name=ratio
 
     |name=ratio
     |type=
+
     |type=float
     |set=0
+
     |set=1
 
     |text=Get or set the split proportion of the pane, if the pane was previously split.
 
     |text=Get or set the split proportion of the pane, if the pane was previously split.
 
}}
 
}}
Line 50: Line 50:
 
     |class=Pane
 
     |class=Pane
 
     |name=topRight
 
     |name=topRight
     |type=
+
     |type=tuple(x,y,u,v)
 
     |set=0
 
     |set=0
 
     |text=The coordinates of the top right corner, expressed in both pixels and uv offsets, in a named tuple.
 
     |text=The coordinates of the top right corner, expressed in both pixels and uv offsets, in a named tuple.
Line 57: Line 57:
 
     |class=Pane
 
     |class=Pane
 
     |name=type
 
     |name=type
     |type=
+
     |type=PaneType
 
     |set=0
 
     |set=0
 
     |text=The enumerated type of the pane. Example: NetworkEditor.
 
     |text=The enumerated type of the pane. Example: NetworkEditor.
 
The enumeration is called PaneType and consists of:
 
The enumeration is called PaneType and consists of:
PaneType.NETWORKEDITOR
+
*PaneType.NETWORKEDITOR
PaneType.PANEL
+
*PaneType.PANEL
PaneType.GEOMETRYVIEWER
+
*PaneType.GEOMETRYVIEWER
PaneType.TOPVIEWER
+
*PaneType.TOPVIEWER
PaneType.CHOPVIEWER
+
*PaneType.CHOPVIEWER
PaneType.ANIMATIONEDITOR
+
*PaneType.ANIMATIONEDITOR
PaneType.PARAMETERS
+
*PaneType.PARAMETERS
PaneType.TEXTPORT
+
*PaneType.TEXTPORT
 
}}
 
}}
 
{{ClassMember
 
{{ClassMember
 
     |class=Pane
 
     |class=Pane
 
     |name=id
 
     |name=id
     |type=
+
     |type=int
 
     |set=0
 
     |set=0
 
     |text=A unique numeric identifier.
 
     |text=A unique numeric identifier.
Line 85: Line 85:
 
     |name=floatingCopy
 
     |name=floatingCopy
 
     |call=floatingCopy()
 
     |call=floatingCopy()
     |returns=
+
     |returns=td.Pane
     |text=: -> Pane
+
     |text=Return a floating copy of the pane.
Return a floating copy of the pane.
 
 
}}
 
}}
 
{{ClassMethod
 
{{ClassMethod
Line 93: Line 92:
 
     |name=close
 
     |name=close
 
     |call=close()
 
     |call=close()
     |returns=
+
     |returns=None
     |text=:
+
     |text=Close the pane.
Close the pane.
 
 
}}
 
}}
 
{{ClassMethod
 
{{ClassMethod
Line 101: Line 99:
 
     |name=splitBottom
 
     |name=splitBottom
 
     |call=splitBottom()
 
     |call=splitBottom()
     |returns=
+
     |returns=td.Pane
     |text=: -> Pane
+
     |text=Split the bottom portion of the pane into a new pane.
Split the bottom portion of the pane into a new pane.
 
 
}}
 
}}
 
{{ClassMethod
 
{{ClassMethod
Line 109: Line 106:
 
     |name=splitRight
 
     |name=splitRight
 
     |call=splitRight()
 
     |call=splitRight()
     |returns=
+
     |returns=td.Pane
     |text=: -> Pane
+
     |text=Split the right portion of the pane into a new pane.
Split the right portion of the pane into a new pane.
 
 
}}
 
}}
 
{{ClassMethod
 
{{ClassMethod
Line 117: Line 113:
 
     |name=splitLeft
 
     |name=splitLeft
 
     |call=splitLeft()
 
     |call=splitLeft()
     |returns=
+
     |returns=td.Pane
     |text=: -> Pane
+
     |text=Split the left portion of the pane into a new pane.
Split the left portion of the pane into a new pane.
 
 
}}
 
}}
 
{{ClassMethod
 
{{ClassMethod
Line 125: Line 120:
 
     |name=changeType
 
     |name=changeType
 
     |call=changeType(paneType)
 
     |call=changeType(paneType)
     |returns=
+
     |returns=td.Pane
     |text=: -> Pane
+
     |text=Change the pane to the specified type.  Will return a new Pane object that represents the Pane. After being called, the current Pane instance will no longer be valid.
Change the pane to the specified type.  Will return a new Pane object that represents the Pane. After being called, the current Pane instance will no longer be valid.
+
*paneType - The type of pane to change this pane to.
paneType - The type of pane to change this pane to.
+
<syntaxhighlight lang=python>
 
p = ui.panes[0]
 
p = ui.panes[0]
p = p.changeType(PaneType.TOPVIEWER)  #note: must re-assign p to new object.
+
p = p.changeType(PaneType.TOPVIEWER)  # note: must re-assign p to new object.
 +
</syntaxhighlight>
 
}}
 
}}
 
{{ClassMethod
 
{{ClassMethod
Line 136: Line 132:
 
     |name=splitTop
 
     |name=splitTop
 
     |call=splitTop()
 
     |call=splitTop()
     |returns=
+
     |returns=td.Pane
     |text=: -> Pane
+
     |text=Split the top portion of the pane into a new pane.
Split the top portion of the pane into a new pane.
 
 
}}
 
}}
 
{{ClassMethod
 
{{ClassMethod
Line 144: Line 139:
 
     |name=tearAway
 
     |name=tearAway
 
     |call=tearAway()
 
     |call=tearAway()
     |returns=
+
     |returns=bool
     |text=: -> boolean
+
     |text=Detach the pane into a floating window. Returns True if successful.
Detach the pane into a floating window. Returns True if successful.
 
 
}}}}
 
}}}}
 
<section end=HELPBODY />
 
<section end=HELPBODY />
 
{{History}}
 
{{History}}
 
{{#invoke:Category|list|Python Reference}}
 
{{#invoke:Category|list|Python Reference}}

Revision as of 17:34, 29 September 2017

The Pane class describes an instance of a pane interface. It can be accessed through the ui.panes object. It is the parent class of the NetworkEditor Class.


Members[edit]

bottomLefttuple(x,y,u,v) (Read Only):

The coordinates of the bottom left corner, expressed in both pixels and uv offsets, in a named tuple.

linkint :

Get or set the numeric link index.

maximizebool :

Enable or disable the pane maximize state.

namestr :

Get or set the pane name.

ownerCOMP :

Get or set the component this pane points to.

ratiofloat :

Get or set the split proportion of the pane, if the pane was previously split.

topRighttuple(x,y,u,v) (Read Only):

The coordinates of the top right corner, expressed in both pixels and uv offsets, in a named tuple.

typePaneType (Read Only):

The enumerated type of the pane. Example: NetworkEditor.

The enumeration is called PaneType and consists of:

  • PaneType.NETWORKEDITOR
  • PaneType.PANEL
  • PaneType.GEOMETRYVIEWER
  • PaneType.TOPVIEWER
  • PaneType.CHOPVIEWER
  • PaneType.ANIMATIONEDITOR
  • PaneType.PARAMETERS
  • PaneType.TEXTPORT

idint (Read Only):

A unique numeric identifier.

Methods[edit]

floatingCopy()td.Pane:

Return a floating copy of the pane.

close()None:

Close the pane.

splitBottom()td.Pane:

Split the bottom portion of the pane into a new pane.

splitRight()td.Pane:

Split the right portion of the pane into a new pane.

splitLeft()td.Pane:

Split the left portion of the pane into a new pane.

changeType(paneType)td.Pane:

Change the pane to the specified type. Will return a new Pane object that represents the Pane. After being called, the current Pane instance will no longer be valid.

  • paneType - The type of pane to change this pane to.
p = ui.panes[0]
p = p.changeType(PaneType.TOPVIEWER)  # note: must re-assign p to new object.

splitTop()td.Pane:

Split the top portion of the pane into a new pane.

tearAway()bool:

Detach the pane into a floating window. Returns True if successful.

TouchDesigner Build:

An Operator Family that contains its own Network inside. There are twelve 3D Object Component and eight 2D Panel Component types. See also Network Path.

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.