Post #3097: ![](https://blenderartists.org/user_avatar/blenderartists.org/feralman/48/515373

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2020-03-23 09:20:38
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_03094

🏷️ Tags

pie-menu hotkeys intermediate

  • Pie Menu Editor
  • Python Scripting
  • Command tab with modifier detection

πŸ’¬ Content

FeralMan:

I want to have a button that goes for the β€œTop” view. But if you pressed with CTRL function go for β€œBottom” View.

I agree with @Nanomanpro, in this case separate menus is the best choice.
But if you want to use 1 pie you can check E.ctrl, E.shift, E.alt values in Command tab:

bpy.ops.view3d.view_axis(type='BOTTOM') if E.ctrl else bpy.ops.view3d.view_axis(type='TOP')

Also Any key modifier can be useful for this pie.


❀️ 2 likes


πŸ”— View on Blender Artists