hou.nodeType function

Returns a NodeType object given category and a name, such as Sop and “copy”. Returns None if the type does not exist.

All Usage Arguments Examples Replaces

See also: 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.

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

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

Replaces

optype command , optype expression function , optypeinfo expression function