Post #1454: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

📋 Metadata

🏷️ Tags

macro pie-menu hotkeys intermediate solved

  • Macro Editor
  • Pie Menu Editor
  • Python Scripting
  • Sidebar Toggle
  • Side Area Toggle

💬 Content

anphung:

I want to hide the side bars of the 3D View when I call the UV Edtor.

Use macro with these 3 slots:

(bpy.ops.pme.sidebar_toggle(override_context('VIEW_3D'), action='HIDE'))



(bpy.ops.pme.sidebar_toggle(override_context('VIEW_3D'), action='HIDE', sidebar='PROPERTIES'))



bpy.ops.pme.sidearea_toggle(area='IMAGE_EDITOR', width=500)

Or just this code in your pie menu (Command tab):

bpy.ops.pme.sidebar_toggle(override_context('VIEW_3D'), action='HIDE'); bpy.ops.pme.sidebar_toggle(override_context('VIEW_3D'), action='HIDE', sidebar='PROPERTIES'); bpy.ops.pme.sidearea_toggle('INVOKE_DEFAULT', area='IMAGE_EDITOR', width=500)

❤️ 1 likes


🔗 View on Blender Artists