carson-katri / dream-textures

Stable Diffusion built-in to Blender
GNU General Public License v3.0
7.82k stars 427 forks source link

Add default nodes when creating a new node tree using new_engine_node_tree #737

Closed GottfriedHofmann closed 7 months ago

GottfriedHofmann commented 12 months ago

When creating new node trees, usually a functional minimal sample of a node tree is already created (Eevee, Cycles, Geometry Nodes, Compositor Nodes). This is not possible directly when the node tree type is defined via Python but Dream Textures has a secondardy operator new_engine_node_tree that is exposed in the render engine settings. Using this operator, we can simulate the default Blender behavior.

For the default nodes, I have selected Stable Diffusion and Output because they are the bare minimum render properties because that way the user will not run into the error of resolution mismatch between render engine and the stable diffusion output.

grafik