Post #690: Heya, does anyone know how to switch between an operator and a pie menu based on

📋 Metadata

  • Author: Way2Close
  • Date: 2017-05-23 19:34:17
  • Type: question
  • Quality Score: 5/10

🏷️ Tags

pie-menu hotkeys intermediate

  • Pie Menu Editor
  • Python Scripting

💬 Content

Heya, does anyone know how to switch between an operator and a pie menu based on a bool’s value?

if bpy.context.scene.mybool == False:
operator
elif bpy.context.scene.mybool == True:
pie menu

Thanks in advance guys :slight_smile:


🔗 View on Blender Artists