NodeOutputs(bpy_prop_collection)

base classes — bpy_prop, bpy_prop_collection

class bpy.types.NodeOutputs(bpy_prop_collection)

Collection of Node Sockets

new(type, name, *, identifier='', use_multi_input=False)

Add a socket to this node

Parameters:
  • type (str) – Type, Data type (never None)

  • name (str) – Name, (never None)

  • identifier (str) – Identifier, Unique socket identifier (optional, never None)

  • use_multi_input (bool) – Make the socket multi-input (valid for inputs only) (optional)

Returns:

New socket

Return type:

NodeSocket

remove(socket)

Remove a socket from this node

Parameters:

socket (NodeSocket) – The socket to remove

clear()

Remove all sockets from this node

move(from_index, to_index)

Move a socket to another position

Parameters:
  • from_index (int) – From Index, Index of the socket to move (in [0, inf])

  • to_index (int) – To Index, Target index for the socket (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:

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