Houdini 20.0 Nodes APEX Nodes

graph::PackSubnet

Packs a given array of APEX nodes of a given APEX graph into a subnet, keeping all existing connections.

On this page
Since 20.0

Packs a given array of APEX nodes of a given APEX graph into a subnet, keeping all existing connections. It is important that the given selection of nodes does not contain any holes. That means that all nodes that have input AND output dependencies to the node selection must be part of the node selection. Otherwise a subnet cannot be constructed. All input connection of the subnet to be created will be kept by automatically promoting the given inputs within the subnet. The same applies for outputs.

Inputs

*graph: ApexGraphHandle Required

The APEX graph containing the APEX nodes to be packed into a subnet.

subnetname: String

The name of the subnet to be created

nodes: ApexNodeIDArray

An array of APEX nodes to be packed into a subnet.

Outputs

*graph: ApexGraphHandle

The APEX graph containing the created packed subnet.

subnetnode: ApexNodeID

The APEX node id of the subnet being added.

APEX Nodes