Last active
July 26, 2016 09:57
-
-
Save zeffii/4bc182f6b73316b9f2e8b2f554fb2bb7 to your computer and use it in GitHub Desktop.
node_tree back button
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: | |
if len(s.path) == 1: | |
s.path.pop() | |
s.path.append(bpy.data.node_groups['NodeTree']) | |
s.path.append(s.path[0].node_tree) |
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: | |
if len(s.path) == 1: | |
s.path.append(s.path[0].node_tree) | |
s.path[0] = bpy.data.node_groups['NodeTree'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment