ObjectModifiers(bpy_struct)
base class — bpy_struct
- class bpy.types.ObjectModifiers(bpy_struct)
Collection of object modifiers
- new(name, type)
Add a new modifier
- Parameters
name (string, (never None)) – New name for the modifier
type (enum in Object Modifier Type Items) – Modifier type to add
- Returns
Newly created modifier
- Return type
- remove(modifier)
Remove an existing modifier from the object
- Parameters
modifier (
Modifier
, (never None)) – Modifier to remove
- clear()
Remove all modifiers from the object
- move(from_index, to_index)
Move a modifier to a different position
- Parameters
from_index (int in [-inf, inf]) – From Index, Index to move
to_index (int in [-inf, inf]) – To Index, Target index
- 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