Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. bpy.ops.view3d.properties()
  2. bpy.ops.view3d.toolshelf()
  3.  
  4. for area in bpy.context.screen.areas:
  5. if area.type == 'VIEW_3D':
  6. context_copy = bpy.context.copy()
  7. context_copy['area'] = area
  8. bpy.ops.view3d.properties(context_copy)
  9. bpy.ops.view3d.toolshelf(context_copy)
  10.  
  11. # hide 'T' and 'N' panels
  12. for r in bpy.context.area.regions:
  13. if r.type == 'UI':
  14. if r.width > 1:
  15. bpy.ops.view3d.properties()
  16. toggle_properties = True
  17.  
  18. elif r.type == 'TOOLS':
  19. if r.width > 1:
  20. bpy.ops.view3d.toolshelf()
  21. toggle_tools = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement