ObjectGpencilModifiers(bpy_struct)
base class — bpy_struct
- class bpy.types.ObjectGpencilModifiers(bpy_struct)
Collection of object grease pencil modifiers
- new(name, type)
Add a new greasepencil_modifier
- Parameters
name (string, (never None)) – New name for the greasepencil_modifier
type (enum in Object Greasepencil Modifier Type Items) – Modifier type to add
- Returns
Newly created modifier
- Return type
- remove(greasepencil_modifier)
Remove an existing greasepencil_modifier from the object
- Parameters
greasepencil_modifier (
GpencilModifier
, (never None)) – Modifier to remove
- clear()
Remove all grease pencil modifiers from the object
- 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