Quick Start
Introduction
In this tutorial, you will get a quick view of node-graph-widget. To run this tutorial, you need to install node-graph. Open a terminal and run:
pip install node-graph
[2]:
from node_graph import NodeGraph
ng = NodeGraph(name="example")
float1 = ng.nodes.new("node_graph.test_float", value=2.0)
float2 = ng.nodes.new("node_graph.test_float", value=3.0)
add1 = ng.nodes.new("node_graph.test_add")
ng.links.new(float1.outputs[0], add1.inputs[0])
ng.links.new(float2.outputs[0], add1.inputs[1])
ng.to_html()
[2]: