Skip to content

Select all nodes in Node Graph

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

_# select all nodes in the Node Graph #_
app.selectAllNodes(app)

_# in a list called 'currentNodes', we store the selected nodes #_
currentNodes = app.getSelectedNodes()

_# now we can cycle through all nodes to do whatever we want #_
_# a variable called 'node' is created on the fly #_
_# this variable will store the current node we are looking at in the list #_
for node in currentNodes:
	do your stuff...

Clone this wiki locally