VertColors(bpy_struct)

base class — bpy_struct

class bpy.types.VertColors(bpy_struct)

Collection of sculpt vertex colors

active

Active sculpt vertex color layer

Type

MeshVertColorLayer

active_index

Active sculpt vertex color index

Type

int in [0, inf], default 0

new(name='Col', do_init=True)

Add a sculpt vertex color layer to Mesh

Parameters
  • name (string, (optional, never None)) – Sculpt Vertex color name

  • do_init (boolean, (optional)) – Whether new layer’s data should be initialized by copying current active one

Returns

The newly created layer

Return type

MeshVertColorLayer

remove(layer)

Remove a vertex color layer

Parameters

layer (MeshVertColorLayer, (never None)) – The layer to remove

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

Inherited Functions

References