ActionSlots(bpy_struct)¶
base class — bpy_struct
- class bpy.types.ActionSlots(bpy_struct)¶
Collection of action slots
- active¶
Active slot for this action
- Type:
- new(id_type, name)¶
Add a slot to the Action
- Parameters:
id_type (enum in Id Type Items) – Data-block Type, The data-block type that the slot is intended for. This is combined with the slot name to create the slot’s unique identifier, and is also used to limit (on a best-effort basis) which data-blocks the slot can be assigned to.
name (string, (never None)) – Name, Name of the slot. This will be made unique within the Action among slots of the same type
- Returns:
Newly created action slot
- Return type:
- remove(action_slot)¶
Remove the slot from the Action, including all animation that is associated with that slot
- Parameters:
action_slot (
ActionSlot
) – Action Slot, The slot 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