Skip to content

Select all nodes in Node Graph

fabiof17 edited this page Jun 17, 2019 · 6 revisions
from NatronGui import *
import NatronEngine

# all nodes get selected #
allNodes = app.selectAllNodes(app)

# all nodes are stored in a list called 'currentNodes' #
currentNodes = app.getSelectedNodes()

# now we can cycle through all nodes to do whatever we want #
for node in currentNodes:
	do your stuff...

Clone this wiki locally