📋 Metadata
- Author: roaoao
- Date: 2019-07-25 23:21:21
- Type:
answer - Reply to: post_02542
💬 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