Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created July 25, 2016 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/95a6e38608eba84416e3a653a9ed6827 to your computer and use it in GitHub Desktop.
Save zeffii/95a6e38608eba84416e3a653a9ed6827 to your computer and use it in GitHub Desktop.
iterate node views
import bpy
AREA = 'NODE_EDITOR'
for window in bpy.context.window_manager.windows:
for area in window.screen.areas:
if not area.type == AREA:
continue
for s in area.spaces:
if s.type == AREA:
print(s.path)
print(s.path[0].node_tree)
print(s.path[1].node_tree)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment