| Inheritance | 
 | 
¶
Methods from hou.NetworkItem ¶
networkItemType()
  → hou.networkItemType
        
Return an enum value indicating what type of network item is represented
    by this object. This value is equivalent to using the isinstance built in
    Python function with the matching class
    (for example hou.networkItemType.Connection is equivalent to
    hou.NodeConnection).
Methods from hou.NetworkMovableItem ¶
name()
  → str
        
Return this node’s name. See also hou.NetworkMovableItem.path.
setName(name, unique_name=False)
        
Set the name of this node. Raises hou.OperationFailed if the new name contains characters other than letters, numbers, periods, dashes, or underscores. Raises hou.OperationFailed if the node could not be renamed (for example, another node already exists with the name, the node is the root node or top-level manager (e.g. /obj), or the node is inside a locked asset). If the unique_name parameter is set to True, the supplied name may be changed to ensure that it doesn’t match the name of any existing node.
digitsInName()
  → int
        
Return the value of the last set of digits inside the node’s name, or 0 if there are no digits.
For example, the result is 102 for a node named geo102, and 34 for
    a node named light12to34.
path()
  → str
        
Return the full path (i.e. starting with /) of this node in the network.
relativePathTo(base_node)
  → str
        
Return a relative path to another node object from this node.
>>> box1 = hou.node("/obj/box_object1/box1") >>> sphere1 = hou.node("/obj/sphere_object1/sphere1") >>> box1.relativePathTo(sphere1) '../../sphere_object1/sphere1' >>> hou.node("/obj").relativePathTo(box1) 'box_object1/box1' >>> box1.relativePathTo(box1) '.'
parent()
  → hou.Node
        
Return the node that contains this item.
Note that this method returns None if the item is the root node (i.e. /).
>>> hou.node("/obj/box_object1").parent() <hou.Node at /obj> >>> print hou.node("/").parent() None
parentNetworkBox()
  → hou.NetworkBox or None
        
Returns the parent network box which contains this item, or None if it is not inside a network box.
isSelected()
  → bool
        
Return whether this item is selected.
See also hou.selectedNodes().
isPicked()
  → bool
        
Equivalent to calling hou.NetworkMovableItem.isSelected.
setSelected(on, clear_all_selected=False, show_asset_if_selected=False)
        
Select or deselect this item, optionally deselecting all other selected
    items in this network. If show_asset_if_selected is True, and this item
    is a Node, then the panes will show the top-level asset of the selected
    item instead.
setPicked(on)
        
Equivalent to calling hou.NetworkMovableItem.setSelected with default values for all optional parameters.
color()
  → hou.Color
        
Return the color of this item’s tile in the network editor.
setColor(color)
        
Sets the color of this item’s tile in the network editor to the given hou.Color.
sessionId()
        
Returns an integer value that uniquely identifies this item
    in a given Houdini session. This id is only guaranteed to be unique
    in a single Houdini process. It is useful as a quick and easy way to
    save a restore a reference to an item. It is also only unique for
    a specific item subclass. So there may be a Node with the same
    session id as a NetworkBox.
See hou.nodeBySessionId() to turn a session id back into a node, or hou.networkBoxBySessionId() to turn a session id back into a network box, or more generally, hou.itemBySessionId() to turn a session id combined with an enum value indicating the item subclass into an item of that type.
position()
  → hou.Vector2
        
Return the position of this item’s tile in the network editor graph as
    a Vector2. See also move() and setPosition().
setPosition(vector2)
        
Sets the position of this item’s tile in the network editor graph. Raises hou.InvalidInput if the item cannot have the given position.
move(vector2)
        
Moves this item’s tile in the network editor graph by the increments in the given hou.Vector2.
To position a item absolutely, use setPosition().
To get the item’s current graph position, use position().
Raises hou.InvalidInput if the item cannot move to the position specified.
shiftPosition(vector2)
        
Equivalent to calling hou.NetworkMovableItem.move.
size()
  → hou.Vector2
        
Return the size of this item’s tile in the network editor graph as a
    Vector2.
Methods from hou.IndirectInput ¶
outputs()
  → tuple
 of hou.Node
        
Return the nodes that have one of their inputs connected to the output of this object.
outputConnections()
  → tuple
 of hou.NodeConnection
        
Return a tuple of objects representing each connection to a node from the output of this object. The objects returned by this method allow you to discover not just which nodes are connected to this object, but which inputs it feeds into.
inputOutputIndex()
  → int
        
Returns the index of the output connection on the node that the input
    side of this object connects to. As with the input function, indirect
    inputs are traversed until a node is found. If no node is connected, even
    indirectly, 0 will be returned.
inputItem()
  → hou.NetworkMovableItem
        
Returns the item connected directly to the input side of this indirect
    input. This may be a node, indirect input, or None if nothing is
    connected. Note that the returned item may not be inside the same parent
    network as this object if it is a hou.SubnetIndirectInput.
inputItemOutputIndex()
  → int
        
Returns the index of the output connection on the network item connected
    directly to the input side of this object. Returns 0 if nothing is
    connected. This value will only be non-zero if a hou.Node is
    connected to this object since all other network items only has a single
    output connector.
setColorDefault()
        
Sets the color of this object to be the default for indirect inputs. By
    explicitly setting to the default color, any future changes to the default
    indirect input color will cause this object to use the new color. This
    method clears the symbolicColorName setting and the
    useColorFromOutput setting.
setSymbolicColorName(name)
        
Sets the color of this object to use a symbolic color name defined in the
    current Houdini color scheme (see hou.ui.colorByName). The symbolic
    color name will be saved with the hip file so that changes to the color
    scheme will result in a new color being used for this object. This
    method clears the useColorFromDefault setting, and causes the
    color value to be ignored.
setUseColorFromOutput(use_output_color)
        
Set this indirect input to display itself with the same color as the
    first input connector connected as an output to this object. If set to
    False, this object is displayed with its color returned by the
    hou.NetworkMovableItem.setColor method. This method clears the
    symbolicColorName setting, and causes the color value to be ignored.
symbolicColorName()
  → str
        
Return the symbolic color name used to display this object, set with the
    setSymbolicColorName method. Returns an empty string if the color of
    this object was set using the setUseColorFromOutput or
    hou.NetworkMovableItem.setColor methods. The symbolic color name
    can be converted to a hou.Color using hou.ui.colorFromName.
useColorFromOutput()
  → bool
        
Return True if this object will be displayed based on the color of the
    first input to which it is connected. Return False if will be displayed
    using the color return by the hou.NetworkMovableItem.color method.
Methods from hou.SubnetIndirectInput ¶
number()
  → int
        
Return the number of the corresponding input connector on the subnet. Note that input numbers are zero based, so the first input will return 0.
input()
  → hou.Node
        
Return the node connected to the parent subnet node at the input
    corresponding to this object. This node can be found indirectly using the
    parent() object, and number() method on this object, but this
    single method is much more convenient. Return None if no node is
    connected.
inputConnections()
  → tuple of hou.NodeConnection
        
Returns an empty tuple. This method exists to mirror similar methods on hou.Node and hou.NetworkDot. This allows these network items to be treated in a more uniform way in Python code.