H◆NHyperNodes RU
DOCS / WORKING WITH THE GRAPH

Working with the graph

How nodes get onto the canvas

  • Alt+2 — add the Maya selection. New nodes line up along their connections to the nodes already on the canvas. With Shift held, they're stacked under the cursor instead; which way is the default is set by Layout → Add Selected ignores links.
  • The menu on an empty spot of the canvas — hold the right button where there are no nodes and move the mouse down-left: the Maya selection is added to the canvas, just like with Alt+2.
  • Dragging from the Outliner — nodes land where you drop them.
  • Tab — create a new node: start typing its type and pick it from the list.
The menu on an empty spot of the canvas: Add Selected, Remove Selected and Clear Canvas

Two options in the Graph menu decide how nodes arrive:

  • Add Shapes with Transforms — a transform's shapes come onto the canvas along with it;
  • Expand added nodes with connections — a node arrives already expanded, with its connected attributes.

To remove selected nodes from the canvas, press Alt+1 or move down-right in the same menu; to clear the canvas, press Alt+3 or move down.

Expanding connections

From a node

Hold the right button on a node and move the mouse:

DirectionWhat appears
leftall inputs, the whole chain
rightall outputs, the whole chain
up-leftinputs, one level
up-rightoutputs, one level
upparent in the hierarchy
downchildren in the hierarchy

The gesture only adds nodes: everything already on the canvas stays where it is.

From a port

The connections of a single attribute come from the right button on its port: Show connections — its neighbors, Show connection chain — the whole chain behind them, Hide connections — remove the whole chain behind the port from the canvas (nodes connected to the rest of the graph stay).

The same port understands a gesture: move the mouse away from the node for the whole chain, away from the node and up for one level.

A port gesture: Input Chain and Inputs: 1 level

With toolbar buttons

Input Connections, In + Out and Output Connections build the graph from the Maya selection on a clean canvas: everything that was on it is replaced. The Levels field next to the buttons sets the depth, and the ∞ button removes the limit.

The expand buttons, the Levels field and the ∞ button on the toolbar

So that an expansion doesn't flood the canvas with thousands of nodes, it has a limit: Graph → Connection node limit…. If you hit it, HyperNodes says so above the canvas.

Layout

New nodes line up along the connections: the graph flows left to right, the node order follows the port order, and branches don't overlap. Nodes that were already on the canvas don't move.

To lay out the whole visible graph again, use Rebuild Layout on the toolbar or in the Layout menu. The spacing between columns, nodes and branches is set in Layout → Layout spacing…: the window re-lays out the canvas as you edit.

Canvas changes — nodes added, removed and re-laid out — are undone separately from Maya's own Undo: hold the right button on an empty spot and move the mouse up-left (Undo) or up-right (Redo). The same commands are in the Canvas menu and as arrow buttons on the toolbar.

The canvas Undo and Redo buttons and Rebuild Layout on the toolbar

Making the graph readable

Hide types you don't need

The Hide node types toolbar button hides every type checked in its menu. The arrow next to it opens the group menu.

The Hide node types button and its group menu

The contents of the groups are edited in Filters → Node type groups… or with Edit… in the same menu. The Toolbar button option gives a group its own toolbar button.

The Node type groups window

The fastest way to hide a type is right from a node: right-click → Hide nodes of type and pick a group. The type is added to it, and the group is switched on. To bring the type back, remove it from the group in the Node type groups window.

The Hide nodes of type submenu with the list of groups

Separate options in the Filters menu hide message and scale → inverseScale connections.

Pass-through nodes

Technical nodes like unitConversion can be taken off the canvas without breaking the chain: the line goes straight between the real nodes. Which types count as pass-through is set in Graph → Pass-through types…; Filters → Hide pass-through nodes or its toolbar button turns them on. Pressing it again switches the look: with a dot on the line where the hidden node is, or without it.

A connection through unitConversion: hidden without a dot, hidden with a dot, and shown

Hyper sets

When dozens of nodes are connected to one attribute — skin joints, constraint targets — they collapse into a hyper set: a compact block with a list inside and one thick line to the node.

  • Collapse by hand — right-click the port → Collapse to set.
  • Collapse always — the Always collapse to set option in the same menu, or a rule in Graph → Hyper set rules….
The port menu: Collapse to set and Always collapse to set
  • Expand back — right-click the hyper set → Explode; to select its nodes in Maya — Select members.
A hyper set and its menu: Explode and Select members

The Graph → Collapse crowds into hyper sets option or its toolbar button turns off building new hyper sets and hides all existing ones.

The Collapse crowds into hyper sets button on the toolbar

Where the traversal stops

An expansion goes from node to node until it runs out of connections or levels. On big rigs that's too far: expand the inputs of a skinCluster, and along with the joints you get their whole hierarchy, constraints and controls. Graph → Traversal recipes… sets where the expansion stops.

The Traversal recipes window: joint is a barrier on the inputs of skinCluster

A rule is written for the type of the node being expanded, separately for each direction. So it works whichever node you start from: "on the inputs of skinCluster" applies even when the expansion reaches the skinCluster from a mesh.

On the left are the node types that have rules.

  • Add node type… — create a rule for a new type: pick it from the list.
  • Remove recipe — delete all barriers of the selected type.

The list also shows types that have other rules — layout or hyper set rules. Their barrier lists are empty.

On the right are the barriers of the selected type: the upper list applies when expanding inputs, the lower one when expanding outputs. There are two kinds of barriers, marked with icons in the list.

  • Add type… — a barrier by neighbor type (■). When the expansion reaches a node of this type, it puts the node on the canvas but doesn't expand its own connections. Example: joint as a barrier on the inputs of skinCluster — expanding the inputs shows the skin joints, but not their parents, constraints and controls.
  • Add attribute… — a barrier by attribute (○). The expansion ignores this attribute's connections entirely, and no neighbors come onto the canvas through it. Example: weight and targetDirectory on the inputs of blendShape — expanding the inputs doesn't pull in what drives the target weights. dagSetMembers and dnSetMembers on the inputs of objectSet — the set's members don't come onto the canvas; their list is shown on the set node itself.
  • Remove — remove the selected barrier.

Need a node behind a barrier? Select it and expand from there: barriers don't apply to the node you start from.

The Graph → Traversal recipes (barriers) option or its toolbar button turns off all rules at once without deleting them.

Isolation

I leaves only the selected nodes on the canvas; pressing it again brings the rest back. The Isolate + and Isolate − buttons next to Isolate add selected nodes to the isolation and remove them from it. Nodes and connections created during isolation stay visible.

While isolation is on, the canvas has a frame labeled ISOLATE: you can see right away that not everything is shown.

The graph before isolation: three nodes selected
After isolation, only the selected nodes are on the canvas; the isolation buttons on the toolbar

Hierarchy

Display → Show Hierarchy Links draws parent-child lines between transforms, Show Shape Links — to the shapes as well. The data connection layer is switched separately (Show Connections), so you can look at the hierarchy without them. The same toggles are on the toolbar as buttons.

The usual view: data connections are visible, no hierarchy lines

When data connections are turned off, the canvas has a frame labeled CONNECTIONS HIDDEN: this is a separate mode in which data connections aren't drawn at all, for any node. The frame reminds you that you're in it — otherwise you might think the nodes aren't connected.

Hierarchy only: parent-to-child lines, data connections hidden
Show Shape Links: a hierarchy line from a transform to its shape

Selection

The selection on the canvas and in Maya is the same thing: select a node here, and it's selected in Maya, and the other way around.

  • Double-click a node to select the whole tree connected to it.
  • Ctrl and a right-button gesture on a node: left — the input tree, right — the output tree, down — the whole tree.
Ctrl and right button on a node: Select Input Tree, Select Output Tree, Select Whole Tree
  • Up and Down arrows walk the hierarchy: from a shape to its transform and back.
  • F — frame the selection, A — the whole graph. If a selected node goes off the edge of the canvas, a triangle pointing to it and its name appear at the edge (Display → Offscreen markers or its toolbar button).
The marker of a selected node beyond the edge of the canvas, and the Offscreen markers button

Next: nodes and attributes.