Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bpy.ops.view3d.properties()
- bpy.ops.view3d.toolshelf()
- for area in bpy.context.screen.areas:
- if area.type == 'VIEW_3D':
- context_copy = bpy.context.copy()
- context_copy['area'] = area
- bpy.ops.view3d.properties(context_copy)
- bpy.ops.view3d.toolshelf(context_copy)
- # hide 'T' and 'N' panels
- for r in bpy.context.area.regions:
- if r.type == 'UI':
- if r.width > 1:
- bpy.ops.view3d.properties()
- toggle_properties = True
- elif r.type == 'TOOLS':
- if r.width > 1:
- bpy.ops.view3d.toolshelf()
- toggle_tools = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement