Post #672:
Sp
📋 Metadata
- Author: roaoao
- Date: 2017-05-20 10:36:01
- Type:
answer - Quality Score: 8/10
- Reply to: post_00671
- Replies (1): post_00673
🏷️ Tags
pie-menu configuration intermediate solved
⚙️ Related PME Features
- 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