Post #1454: : post_01455
🏷️ Tags
macro pie-menu hotkeys intermediate solved
⚙️ Related PME Features
- 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