IDOverrideLibraryPropertyOperations(bpy_prop_collection)

base classes — bpy_prop, bpy_prop_collection

class bpy.types.IDOverrideLibraryPropertyOperations(bpy_prop_collection)

Collection of override operations

add(operation, *, use_id=False, subitem_reference_name='', subitem_local_name='', subitem_reference_id=None, subitem_local_id=None, subitem_reference_index=-1, subitem_local_index=-1)

Add a new operation

Parameters:
  • operation (Literal['NOOP', 'REPLACE', 'DIFF_ADD', 'DIFF_SUB', 'FACT_MULTIPLY', 'INSERT_AFTER', 'INSERT_BEFORE']) –

    Operation, What override operation is performed

    • NOOP No-Op – Does nothing, prevents adding actual overrides (NOT USED).

    • REPLACE Replace – Replace value of reference by overriding one.

    • DIFF_ADD Differential – Stores and apply difference between reference and local value (NOT USED).

    • DIFF_SUB Differential – Stores and apply difference between reference and local value (NOT USED).

    • FACT_MULTIPLY Factor – Stores and apply multiplication factor between reference and local value (NOT USED).

    • INSERT_AFTER Insert After – Insert a new item into collection after the one referenced in subitem_reference_name/_id or _index.

    • INSERT_BEFORE Insert Before – Insert a new item into collection before the one referenced in subitem_reference_name/_id or _index (NOT USED).

  • use_id (bool) – Use ID Pointer Subitem, Whether the found or created liboverride operation should use ID pointers or not (optional)

  • subitem_reference_name (str) – Subitem Reference Name, Used to handle insertions or ID replacements into collection (optional, never None)

  • subitem_local_name (str) – Subitem Local Name, Used to handle insertions or ID replacements into collection (optional, never None)

  • subitem_reference_id (ID) – Subitem Reference ID, Used to handle ID replacements into collection (optional)

  • subitem_local_id (ID) – Subitem Local ID, Used to handle ID replacements into collection (optional)

  • subitem_reference_index (int) – Subitem Reference Index, Used to handle insertions or ID replacements into collection (in [-1, inf], optional)

  • subitem_local_index (int) – Subitem Local Index, Used to handle insertions or ID replacements into collection (in [-1, inf], optional)

Returns:

New Operation, Created operation

Return type:

IDOverrideLibraryPropertyOperation

remove(operation)

Remove and delete an operation

Parameters:

operation (IDOverrideLibraryPropertyOperation) – Operation, Override operation to be deleted

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References