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).

Node Tools scripts:

AR_AddRSTextureControllers
Creates individual scale, offset and rotate control nodes for Redshift texture and triplanar nodes. If you select multiple texture nodes the script creates shared controllers.

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.

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.

AR_NodeTools.zip

Updated 26/11/2019
> Bug fixes
> Added AR_ConnectNodes script

Cinema 4D, Python, Redshift, Xpresso