Post #2579: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

📋 Metadata

  • Author: roaoao
  • Date: 2019-08-04 21:02:09
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_02577

🏷️ Tags

popup-dialog hotkeys intermediate solved

  • Pie Menu Editor
  • Popup Dialog Editor
  • Property Editor
  • Python Scripting

💬 Content

anphung:

What keymap/ context should I use for modifier popup?

What code and where you use it for the modifier popup? Afaik you can use any keymap for it.

anphung:

How do I add this (Weight) to a menu?

You can find modifier by its name (Property tab):

C.object.modifiers["Weighted Normal"].weight

Or by its type (Property tab):

find_by(C.object.modifiers, "type", 'WEIGHTED_NORMAL').weight

🔗 View on Blender Artists