This subclass of hou.NetworkShape describes a rectangle that can be drawn into a network editor pane.
__init__(rect, color = hou.Color((1.0, 1.0, 1.0)), alpha = 1.0, fill = True, screen_space = True, smooth = True)
Constructs a new box 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.
The color of the box, expressed as a hou.Color.
The alpha used when drawing the box, expressed as a float value between 0 and 1.
A boolean value indicating whether the box should be filled, or just drawn as an outline.
A boolean value indicating whether the
rect parameter describes the
box size and position in screen space or network layout space. If set
True, the rectangle is expressed as pixels relative to the lower
left corner of the pane. If
False, the rectangle is 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