preferredNodeType(name, parent_node=None)
→ NodeType or None
name
The internal name of a node type including the category. 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
.
parent_node
Optional. The node that will be the parent for this node type.
Examples ¶
>>> hou.preferredNodeType("Shop/pyro") <hou.ShopNodeType for Shop pyro::3.0> >>> hou.preferredNodeType("Shop/pyro", hou.node("/shop")) <hou.ShopNodeType for Shop pyro::3.0>
See also |