VertexGroup(bpy_struct)

base class — bpy_struct

class bpy.types.VertexGroup(bpy_struct)

Group of vertices, used for armature deform and other purposes

index

Index number of the vertex group

Type :int in [0, inf], default 0, (readonly)
name

Vertex group name

Type :string, default “”
add(index, weight, type)

Add vertices to the group.

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

Remove a vertex from the group.

Parameters:index (int array of 1 items in [-inf, inf]) – Index List.
weight(index)

Get a vertex weight from the group.

Parameters:index (int in [0, inf]) – Index, The index of the vertex.
Returns:Vertex weight.
Return type:float in [0, 1]

Inherited Properties

Inherited Functions

References

Previous topic

VertexColors(bpy_struct)

Next topic

VertexGroupElement(bpy_struct)