NetworkEditor Class

From Derivative
Jump to: navigation, search

The NetworkEditor class describes an instance of a Network Editor. They are subclasses of the Pane Class, which can be accessed from the ui object.



Members

NetworkEditor.showBackdropCHOPsbool :

Enable or disable CHOP viewers as backdrops.

NetworkEditor.showBackdropGeometrybool :

Enable or disable SOP and Geometry object viewers as backdrops.

NetworkEditor.showBackdropTOPsbool :

Enable or disable TOP viewers as backdrops.

NetworkEditor.showColorPalettebool :

Enable or disable display of the operator color palette selector.

NetworkEditor.showDataLinksbool :

Enable or disable disable of operator data links.

NetworkEditor.showListbool :

Control display of operators as a list, or connected nodes.

NetworkEditor.showNetworkOverviewbool :

Enable or disable display of the network overview.

NetworkEditor.showParametersbool :

Enable or disable display of the currently selected operator parameters.

NetworkEditor.straightLinksbool :

Control display of operator links as straight or curved.

NetworkEditor.xfloat :

Get or set the x coordinate of the network editor area, where 1 unit = 1 pixel when zoom = 1.

NetworkEditor.yfloat :

Get or set the y coordinate of the network editor area, where 1 unit = 1 pixel when zoom = 1.

NetworkEditor.zoomfloat :

Get or set the zoom factor of the network editor area, where a zoom factor of 1 draws each node at its unscaled resolution.

Methods

NetworkEditor.fitHeight(height)None:

Fit the network area to specified height, specified in node units. This affects the zoom factor.
  • height - The height to fit to.

NetworkEditor.home(zoom=True, op=None)None:

Home all operators in the network.
  • zoom - (Keyword, Optional) When true, the view will be scaled accordingly, otherwise the nodes will only be re-centered.
  • op - (Keyword, Optional) If an operator is specified, the network will be homed around its location.
p = ui.panes['pane1']
n = op('/project1')
p.home(op=n)
p = ui.panes[2]
p.home(zoom=True)

NetworkEditor.fitWidth(width)None:

Fit the network area to specified width, specified in node units. This affects the zoom factor.
  • width - The width to fit to.

NetworkEditor.homeSelected(zoom=True)None:

Home all selected operators in the network.
  • zoom - (Keyword, Optional) When true, the view will be scaled accordingly, otherwise the nodes will only be re-centered.

Pane Class

Members

Pane.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.

Pane.linkint :

Get or set the numeric link index.

Pane.maximizebool :

Enable or disable the pane maximize state.

Pane.namestr :

Get or set the pane name.

Pane.ownerCOMP :

Get or set the component this pane points to.

Pane.ratiofloat :

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

Pane.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.

Pane.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

Pane.idint (Read Only):

A unique numeric identifier.

Methods

Pane.floatingCopy()td.Pane:

Return a floating copy of the pane.

Pane.close()None:

Close the pane.

Pane.splitBottom()td.Pane:

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

Pane.splitRight()td.Pane:

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

Pane.splitLeft()td.Pane:

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

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.

Pane.splitTop()td.Pane:

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

Pane.tearAway()bool:

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


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.

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.