Post #714: I don’t intend to use the popup with a hotkey. I want it to be visible in the pi

📋 Metadata

🏷️ Tags

pie-menu context-filtering intermediate unsolved

  • Pie Menu Editor
  • Poll Method
  • Context-based visibility

💬 Content

I don’t intend to use the popup with a hotkey. I want it to be visible in the pie menu when the context is correct, and hidden when the context is incorrect.

This mainly affect some custom command for different context.

When active object is a camera.

When active object is not a camera.

Shot_557.png711×314 32.7 KB

As you see, the custom command buttons shows up even when the context object isn’t a camera. And it’s displayed in a weird position.

I was expecting the Poll Method to be able to resolve this by not displaying anything at all if context is incorrect.

Or better yet, it would be great to have a Panel Switcher, which given different conditions of the context, assigns different panels to be displayed.


🔗 View on Blender Artists