VertexGroups(bpy_struct)

base class — bpy_struct

class bpy.types.VertexGroups(bpy_struct)

Collection of vertex groups

active

Vertex groups of the object

Type :VertexGroup, (readonly)
active_index

Active index in vertex group array

Type :int in [-32768, 32767], default 0
new(name="Group")

Add vertex group to object.

Parameters:
  • name (string, (optional)) – Vertex group name.
Returns:

New vertex group.

Return type:

VertexGroup

assign(index, group, weight, type)

Add vertex to a vertex group.

Parameters:
  • index (int array of 1 items in [-inf, inf]) – Index List.
  • group (VertexGroup) – Vertex group to add vertex to.
  • weight (float in [0, 1]) – Vertex weight.
  • type (enum in [‘REPLACE’, ‘ADD’, ‘SUBTRACT’]) – Vertex assign mode.

Inherited Properties

Inherited Functions

References

Previous topic

VertexGroupElement(bpy_struct)

Next topic

VertexPaint(Paint)