Created
July 25, 2016 22:34
-
-
Save zeffii/95a6e38608eba84416e3a653a9ed6827 to your computer and use it in GitHub Desktop.
iterate node views
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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