This is tedious to do, but it does make complicated node trees easier to parse.
So #IMadeAThing. A little script that calls the node by what it's doing and collapses it and hides un-connected inputs.
It also spots multiples and fractions of Ο and π and common fractions from 1/2 to 15/16.
So far I've only done maths nodes, but I plan on working my way through the most common nodes, and adding general tidy-up functions as I go. Next on the list is Group Input nodes with only 1 output, that can just get named after the name of the output.
It's just a script that you can run from the Blender text editor at the moment. When it's not late at night I'll make it into a proper module.
If anyone has requests or suggestions, let me know.
https://codeberg.org/stib/stibs_blender_scripts/src/branch/main/nodeBeautify.py
#B3D #python #bpy







