Post #2545: ![](https://blenderartists.org/user_avatar/blenderartists.org/pinhead/48/528486_

📋 Metadata

  • Author: roaoao
  • Date: 2019-07-25 23:21:21
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_02542

🏷️ Tags

pie-menu vertex-groups intermediate solved

  • Pie Menu Editor
  • Custom Python Scripting
  • Panel integration

💬 Content

Pinhead:

I want to create pie menu with possibility to make,edit,delete and choose quick selection sets.
For example on components selection i want quick set selection set with pie menu.
Now when i use “bpy.ops.object.vertex_group_add()” is only create a group but without selected components.

You need to use bpy.ops.object.vertex_group_assign() operator to add the selection to the new vertex group:

bpy.ops.object.vertex_group_add(); bpy.ops.object.vertex_group_assign()

Not sure how you want to use this menu and how it should look. Can you post some pic?

Pinhead:

It is possible to with pie menu open floating Vertex Groups window?

Try this code in Custom tab:

panel('DATA_PT_vertex_groups', area='PROPERTIES')

❤️ 1 likes


🔗 View on Blender Artists