Post #672: Sp

📋 Metadata

🏷️ Tags

pie-menu configuration intermediate solved

  • Pie Menu Editor
  • Poll method
  • Object keymap
  • Python scripting

💬 Content

SpdB3d:

is it possible to make the menu appear when i only select a Lamp or camera ?

Yes, use Object keymap and poll method (first yellow line) with this code:

Lamp:

return C.active_object.type == 'LAMP'

Camera:

return C.active_object.type == 'CAMERA'

Lamp and Camera:

return C.active_object.type in ('LAMP', 'CAMERA')

You can find all object types here.


❤️ 1 likes


🔗 View on Blender Artists