hou.nodeType function

Given a node type category object and a name, return the corresponding NodeType object. Return None if there is no such type with that name.

All Usage Arguments Examples Replaces

See also: hou.NodeType, hou.NodeTypeCategory, hou.NodeTypeCategory.nodeTypes, hou.nodeTypeCategories

Usage

nodeType(category, name) → NodeType or None

Arguments

category

A hou.NodeTypeCategory object (not a string). You can use the hou.nodeTypeCategories() function to get a dict of category name strings to NodeTypeCategory objects. You can also use the helper functions hou.sopNodeTypeCategory, hou.objNodeTypeCategory, etc.

name

The internal name of a node type. To get the internal name of any node type in Houdini, right-click a node of that type and choose Type properties. The internal name is listed at the top of the type properties window beside Operator type. For example, the internal name of the Geometry object is geo.

Examples

# The following three ways of looking up the copy SOP's node type are equivalent:
>>> hou.nodeType(hou.sopNodeTypeCategory(), "copy")
<hou.SopNodeType for Sop copy>

>>> hou.sopNodeTypeCategory().nodeTypes()["copy"]
<hou.SopNodeType for Sop copy>

>>> hou.nodeType(hou.sopNodeTypeCategories()["Sop"], "copy")
<hou.SopNodeType for Sop copy>

Replaces

optype command , optype expression function , optypeinfo expression function