Connecting Nodes
How to connect nodes and manage data flow
Connecting Nodes
Nodes are connected through ports. Data flows from outputs (right side) to inputs (left side).
Making Connections
Basic Connection
- Click on an output port (right side of a node)
- Drag toward an input port (left side of another node)
- Release when the port highlights
- The connection is made
Reverse Direction
You can also drag from input to output - it works the same way.
Quick Connect
Double-click an output port to:
- Open the node browser
- Select a node
- It's automatically connected
Connection Appearance
Colors
Connections are colored by data type:
- Gray - Number
- Blue - Color
- Purple - Vector
- Green - Boolean
Thickness
Thicker connections indicate more data flow (vectors, colors vs. numbers).
Curves
Connections curve naturally. They route around nodes for clarity.
Managing Connections
Selecting Connections
Click a connection to select it. Selected connections highlight.
Deleting Connections
With a connection selected:
- Press Delete or Backspace
- Or right-click and choose Delete
Rerouting
To change a connection's target:
- Click the connection near its end
- Drag to a new port
- Release to reconnect
Multiple Connections
One Output to Many Inputs
An output can connect to multiple inputs:
- The same value is sent to all connected inputs
- Changes affect all connected nodes
One Input, One Connection
An input can only have one connection. Making a new connection replaces the old one.
Connection Validation
Compatible Types
Connections only work between compatible types:
- Same type always works
- Some automatic conversions exist
- Incompatible connections show a warning
Visual Feedback
When dragging a connection:
- Valid targets highlight green
- Invalid targets show red
- Tooltip explains compatibility
Data Flow
Direction
Data flows left to right:
- Inputs receive data
- Nodes process it
- Outputs send results
Order
Nodes process in dependency order:
- Source nodes first
- Dependent nodes after
- Final outputs last
Cycles
Cycles (loops) are not allowed:
- A node can't connect back to itself
- Even through other nodes
- Spectralite prevents these connections
Tips
Organizing Connections
Keep graphs clean:
- Minimize crossing connections
- Use consistent left-to-right flow
- Group related nodes
Debugging
To verify data flow:
- Check connection colors match expected types
- Verify source nodes are working
- Use preview to see intermediate values
Performance
Connection count doesn't affect performance significantly, but:
- Avoid redundant calculations
- Reuse values where possible
- Keep graphs simple
Common Patterns
Fan Out
One value to multiple destinations:
┌─► Node A
Source ─┼─► Node B
└─► Node CMerge
Multiple sources to processing:
Source A ─┬
├─► Merge Node ─► Output
Source B ─┘Chain
Sequential processing:
Input ─► Process 1 ─► Process 2 ─► OutputKeyboard Shortcuts
| Shortcut | Action |
|---|---|
| Delete | Delete selected connection |
| Cmd + Click | Select multiple connections |
| Alt + Drag | Duplicate with connections |
Related
- Data Types - Understanding data types
- Node Editor - The editing environment