Post #673: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

🏷️ Tags

popup-dialog ui-issues intermediate unsolved

  • Popup Dialog Editor
  • Property Editor

💬 Content

roaoao:

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.

It works ,thank you very much. :o

i have a issue with some properties like : Backface Culling
when I open the Pop-up menu it appear normally ,but when I click on it to change its state it disappear.

Ambient Occlusion does not show at all.

note: I added them to the Pop-up using (CTRL+Shift+`)

Thanks again :slight_smile:


🔗 View on Blender Artists