Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import bpy
  2.  
  3.  
  4. AREA = 'NODE_EDITOR'
  5.  
  6. for window in bpy.context.window_manager.windows:
  7. for area in window.screen.areas:
  8.  
  9. if not area.type == AREA:
  10. continue
  11.  
  12. for s in area.spaces:
  13. if s.type == AREA:
  14. if len(s.path) == 1:
  15. s.path.pop()
  16. s.path.append(bpy.data.node_groups['NodeTree'])
  17. s.path.append(s.path[0].node_tree)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement