LoopColors(bpy_struct)¶
base class — bpy_struct
- class bpy.types.LoopColors(bpy_struct)¶
Collection of vertex colors
- active¶
Active vertex color layer
- Type:
- active_index¶
Active vertex color index
- Type:
int in [0, inf], default 0
- new(*, name='Col', do_init=True)¶
Add a vertex color layer to Mesh
- Parameters:
name (string, (optional, never None)) – 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:
- remove(layer)¶
Remove a vertex color layer
- Parameters:
layer (
MeshLoopColorLayer
, (never None)) – The layer to remove
- classmethod bl_rna_get_subclass(id, default=None)¶
- Parameters:
id (str) – 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 (str) – The RNA type identifier.
- Returns:
The class or default when not found.
- Return type:
type