These are some useful workflow scripts for Cinema 4D’s graph view. Scripts are written for Maxon Cinema 4D R21.026 and they work with Xpresso and Redshift node graph (except specific ones).

AR_AlignNodesHorizontally
Aligns selected graph nodes horizontally.
SHIFT-key: align nodes to center.
CTRL-key: align nodes to right.

AR_AlignNodesVertically
Same thing as the previous script but this one aligns graph nodes vertically.
Key modifiers works with same way with this script.

AR_ConnectNodes
Connects two selected nodes, if possible. Connects first open port to first open port.
SHIFT-key: User input output port to input port (index starts from 0 zero).
CTRL-key: Connects last open port to last open port.

AR_DistributeNodesHorizontally
Distributes selected graph nodes horizontally between the first and the last node.
The first node and the last node are picked by the minimum and the maximum x-position values.

AR_DistributeNodesHorizontally
Same thing as the previous script but this script distributes graph nodes vertically.
The first and the last node are picked by the minumum and the maximum y-position values.

AR_LineUpNodesHorizontally
Lines up selected graph nodes horizontally.
SHIFT-key: set custom gap size (default gap size is 20).

AR_LineUpNodesVertically
Same thing as the previous script, but this lines up selected graph nodes vartically.

AR_NodeResize
Resizes selected nodes by given width and height values.

There are also some Redshift specific scripts!

Place script files to your library folder:
C:\Users\[USERNAME]\AppData\Roaming\MAXON\Maxon Cinema 4D R[VERSION]\library\scripts

N.B. Xpresso tag / Redshift material has to be selected when you run the script. Also make sure that you don’t have unnecessary active selections.

Updated 27/10/2022
> Update

Node tools are now part of AR_Scripts

Cinema 4D, Python, Redshift, Xpresso