bpy_prop_collection_idprop

class bpy.types.bpy_prop_collection_idprop

built-in class used for user defined collections.

Note

Note that bpy.types.bpy_prop_collection_idprop is not actually available from within Blender, it only exists for the purpose of documentation.

add()

This is a function to add a new item to a collection.

Returns:

A newly created item.

Return type:

Any

clear()

This is a function to remove all items from a collection.

move(src_index, dst_index)

This is a function to move an item in a collection.

Parameters:
  • src_index (int) – Source item index.

  • dst_index (int) – Destination item index.

remove(index)

This is a function to remove an item from a collection.

Parameters:

index (int) – Index of the item to be removed.