A footprint in the network editor is a ring drawn behind the node in the
network editor, such as the blue “display flag” ring around the
and the orange “output flag” ring around the
This class describes to the network editor which nodes should be drawn with a footprint, and the color and position of that footprint. A tuple of these objects is passed to the hou.NetworkEditor.setFootprints method. This tuple should be updated every time the current network changes to a new node type category.
The default footprint setup for SOP nodes is the following:
>>> editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) >>> editor.setFootprints([ hou.NetworkFootprint( hou.nodeFlag.Display, hou.ui.colorFromName('GraphDisplayHighlight'), 1, True ), hou.NetworkFootprint( hou.nodeFlag.Render, hou.ui.colorFromName('GraphRenderHighlight'), 0, True ), hou.NetworkFootprint( hou.nodeFlag.Template, hou.ui.colorFromName('GraphTemplateHighlight'), 2, True ), hou.NetworkFootprint( hou.nodeFlag.Footprint, hou.ui.colorFromName('GraphTemplateHighlight'), 2, True ), hou.NetworkFootprint( 'output', hou.ui.colorFromName('GraphOutputHighlight'), 1, True ) ])
__init__(condition, color, ring, use_minimum_size)
Construct a new footprint descriptor.
Can be a hou.nodeFlag enum value, in which case any node with
this flag set will be drawn with a footprint.
Alternatively, a hou.nodeFootprint enum value, indicating an
embedded network editor behavior that can be enabled to support the
footprinting of node(s) according to a hard-coded rule set.
string value indicates a node type name, in which
case any node of this type will be drawn with a footprint.
The color used to draw the ring expressed as a hou.Color.
An integer value from 0 to 4 indicating which ring is being described. Ring 0 is a circle that extends from the center of the node. Each subsequent ring is thinner and further from the center of the node.
A boolean value. Set to
True to indicate that the footprint should
maintain a minimum visual size regardless of the network zoom level.
False if the footprint should scale with the network zoom
level, even if that means the footprint becomes very small.