change_node_type
Swap a Houdini node to a different type while preserving wires, name, position, parameters, and subnet contents. Use to upgrade HDA instances or replace placeholders without losing edits.
Instructions
Change a node's type in place, keeping wires, name, position, flags, parameter values and (for subnets/assets) network contents.
This is how an HDA instance is moved to an installed newer version
(building::2.0) without losing its edits, and how a placeholder is
swapped for the real node. Every value set before the swap and not after
it is named in parms_dropped (no such parameter on the new type) or
parms_reset (back at its default). Unversioned names map to the
preferred version, as create_node does.
Args: node_path: Node to change. new_type: Type name in the node's own category. keep_name: Keep the node's name. keep_parms: Carry parameter values over by name. keep_network_contents: Keep a subnet's/asset's children (False resets an asset to its definition's contents, also on a node that is already of new_type).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_type | Yes | ||
| keep_name | No | ||
| node_path | Yes | ||
| keep_parms | No | ||
| keep_network_contents | No |