NodeToPython icon indicating copy to clipboard operation
NodeToPython copied to clipboard

Node to JSON

Open BrendanParmer opened this issue 1 year ago • 3 comments

Starting to think it might be useful to (optionally) be able to save the node tree in a json or something, splitting NodeToPython into a parser and a Python converter. The main advantage would be opening up the door to easily converting to representations of the node tree besides just a bpy recreation, like geometry script, another 3D software's material graph, etc.

BrendanParmer avatar Jun 06 '24 04:06 BrendanParmer

This could potentially be really for source control as well. Node groups have needed to keep a linear history for the most part. NodeToPython can help, but it's output is fairly verbose and potentially difficult to do inline comparisons with. Some sort of visual merge conflict editor for the node-editor graph might come in handy, automatically detecting similar parts of the tree.

BrendanParmer avatar Sep 20 '25 23:09 BrendanParmer

Is it too crazy to think that this offers another way to solve https://github.com/BrendanParmer/NodeToPython/issues/95?

Vollkornaffe avatar Nov 02 '25 22:11 Vollkornaffe

I think it'd definitely be a step forward from the current situation. It's a little easier to manage differences in a JSON object vs just Python text, both for a human and potentially for an automated approach

BrendanParmer avatar Nov 06 '25 06:11 BrendanParmer