Connections
Connect an attribute
Drag a connection from one node's port to another's — from an output to an input or the other way around. While the line is being dragged, ports it can't connect to by type go dim, and a matching port lights up when the cursor is near. You don't have to aim exactly at the port: the connection also lands in the row whose name you release it over.
If the attribute you need is hidden inside a collapsed compound — for example, translateX inside translate — hold the cursor over it: the row expands by itself. To skip the wait, press the right button on the attribute name — it expands right away, and pressing again collapses it.
To cancel the connection you're dragging — Esc or a click on an empty spot of the canvas.
The big port
Every node has a big inputs port and a big outputs port — at the edges of the header.
- A click opens a menu of all attributes on that side, with search by name. While you drag a connection, it keeps only the attributes the connection fits by type.
- Dragging from the big port drags the default attribute — the one you assigned for this node (see below).
If the node has no suitable attribute, you can create it right here: Add & Connect adds an attribute with the same name and type as the dragged connection to the node and connects it at once.
Drop a connection on the whole node
You can drop a connection not on a port but on the node's body. Where it lands:
- by your rule, if one is set (see below);
- if there's no rule — in the attribute with the same name;
- if there's no such attribute either — the connection isn't made.
An array input such as matrixIn takes the connection into its first free element. If a rule names several attributes, the connection lands in the first one that nothing is connected to yet.
Your own attributes to grab and to catch
For each node type you can set what is dragged from its big port and where a connection dropped on it as a whole lands. Right-click an attribute → Drag and Catch:
- Default drag — this attribute is dragged by default when you drag a connection from the big port;
- Default catch — a connection dropped on the node lands in this attribute.
For example: from multiplyDivide the output vector is dragged, and on plusMinusAverage a connection lands in the first free input3D by itself.
For rules where the source and receiving attributes have different names and there are several of them, there's Options → Link hooks…: it sets whole "source → receiver" pairs.
Link sets
A link set is several attributes of one node type that are dragged as one line: for example, translate, rotate and scale. An attribute is added to a set with right-click → Link Set → New set…, or with the checkbox next to an existing set. Sets are shown in bold in the big port menu, and you can drag them from there. On the receiving node, attributes are matched by name.
The order, names and contents of sets are edited in Options → Link sets…. You can also make a set the default drag there.
Several nodes at once
- Copy Connection and Paste Connection. Right-click an output port → Copy Connection, then select the receiving nodes and right-click an input port → Paste Connection. One source connects to all selected nodes, and several selected sources connect to the same number of receivers in pairs.
- A link set on several nodes. Right-click a set in the big port menu → Copy Link Set copies it, and right-click a node → Paste Link Set connects it to the selected nodes.
- Stacks. Select several nodes and right-click → Mark as link stack — they become stack A1, A2… Make stack B the same way. Now a single connection dragged from a node of stack A to a node of stack B is repeated for each pair by number. A connection from a node outside the stacks to a stack connects to all its nodes. Breaking one connection between stacks breaks the others too.
Move and duplicate a connection
- Drag the end of an existing line and drop it on another port — the connection moves.
- With Ctrl held on the receiving end, the connection isn't moved but duplicated: one more appears from the same source.
- Select several lines of one node (click; Shift to add or remove) and drag them onto another node — they all move at once.
Break a connection
- Select the line and press Del.
- Shift+Alt and drag with the left button across lines — cuts every line along the way.
Maya's usual Ctrl+Z undoes the break.
Reroute points
To route a line so it's easier to read, put a point on it: double-click the line. A point can be moved, selected together with nodes and moved with them. Double-clicking a point removes it.
- Several connections from one output can go through one point: right-click the point → Route All Links from Source. Up to the shared point, they run as one thick line.
- You can drag a new connection out of a point: right-click → Connect to Port…, or drop the connection you're dragging onto a point.
- A point dropped on another point of the same source is merged into it.
Points live only on the canvas: in Maya the connection stays direct. Rebuild Layout removes them.
How lines look
In the Display menu:
- Straight Connections — straight segments instead of curves;
- Angled Connections — lines with straight runs and rounded corners;
- Route Links Around Nodes — a line that has to go back goes around the node instead of hiding under it.
Hover over a line — a tooltip shows which attributes it connects.
When Maya can't connect
When Maya refuses — the attribute is locked, the types don't match — a message with the reason appears above the canvas, and the details stay in the Script Editor.
Next: HyperGroups.