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.
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 |
|
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 |
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>