NodeGraphQt
NodeGraphQt copied to clipboard
Change node/port text in runtime
Hi! I would like to change port/node name in runtime, I expanded from example script (full script), snippet below. Is this even possible? Tried searching through docs/source code/github issues but didn't find anything. Thanks, Erik
# create two nodes.
node_a = graph.create_node('com.chantasticvfx.FooNode', name='node A')
output = node_a.add_output(name='out1')
node_b = graph.create_node('com.chantasticvfx.FooNode', name='node B', pos=(300, 50))
input = node_b.add_input(name='in1')
input.connect_to(output)
graph.widget.show()
i = 0
while True:
i+=1
time.sleep(0.2)
node_a.model.name = str(i)
print(i)
input.model.display_name = str(i)
input.model.locked = False
app.processEvents()
app.exec_()
Hi @Erol444, currently this ability is not available yet in the frame work.