NodeFunctionFormatStringItems(bpy_prop_collection)
base classes — bpy_prop, bpy_prop_collection
- class bpy.types.NodeFunctionFormatStringItems(bpy_prop_collection)
Collection of format string items
- new(socket_type, name)
Add an item at the end
- Parameters:
socket_type (Literal[Node Socket Data Type Items]) – Socket Type, Socket type of the item
name (str) – Name, (never None)
- Returns:
Item, New item
- Return type:
- remove(item)
Remove an item
- Parameters:
item (
NodeFunctionFormatStringItem) – Item, The item to remove (never None)
- clear()
Remove all items
- move(from_index, to_index)
Move an item to another position
- Parameters:
from_index (int) – From Index, Index of the item to move (in [0, inf])
to_index (int) – To Index, Target index for the item (in [0, inf])
- 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:
- 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