This subclass of hou.NetworkShape describes a node shape that can be drawn into a network editor pane. This can draw any of the node shapes available to the nodes in the network through the Shape Palette.
__init__(rect, shape, color = hou.Color((1.0, 1.0, 1.0)), alpha =
1.0, fill = True, screen_space = True, smooth = True)
Constructs a new node shape descriptor.
A hou.BoundingRect object which describes the size and position
of the box. It may describe the box in screen space or in the network
layout space, depending on the value of the
This is the only required parameter.
A string holding the name of the node shape to draw. The list of available node shapes can be retrieved with the hou.NetworkEditor.nodeShapes() method.
The color of the node shape, expressed as a hou.Color.
The alpha used when drawing the node shape, expressed as a float value between 0 and 1.
A boolean value indicating whether the node shape should be filled, or just drawn as an outline.
A boolean value indicating whether the
rect parameter describes the
node shape size and position in screen space or network layout space.
If set to
True, the bounds are expressed as pixels relative to the
lower left corner of the pane. If
False, the bounds are expressed in
A boolean value indicating whether lines should be drawn with
smoothing turned on. Smoothing lines is a form of anti-aliasing which
can make curved lines look better, but doing so may affect the color
of the line. This parameter has no effect if