Houdini 21.0 Nodes APEX nodes

graph::Layout

Creates a default positional layout of a selection of APEX nodes.

On this page
Since 20.0

Creates a default positional layout of a selection of APEX nodes. If no nodes are provided, all the nodes at the top level of the graph are laid out. If traverse is set to True, the subnets of the graph are traversed and laid out as well.

The graph ports of this node are in-place ports, which means that the graph is updated without creating a copy.

Inputs

*graph: ApexGraphHandle Required

The graph to lay out.

nodes: ApexNodeIDArray

An array of nodes to lay out.

spacing: Vector2

The default distance in x and y between each node.

offset: Vector2

An offset in x and y that is applied to all the nodes to lay out.

traverse: Bool

If set to True, the subnets of the graph are traversed and laid out.

Outputs

*graph: ApexGraphHandle

The graph with the updated layout.

APEX nodes