NodeSocketStandard(NodeSocket)

base classes — bpy_struct, NodeSocket

Subclasses

class bpy.types.NodeSocketStandard(NodeSocket)

List of node links from or to this socket.

Type:

NodeLinks

Note

Takes O(len(nodetree.links)) time.

(readonly)

draw(context, layout, node, text)

Draw socket

Parameters:
  • context (Context | None) – (never None)

  • layout (UILayout | None) – Layout, Layout in the UI (never None)

  • node (Node | None) – Node, Node the socket belongs to (never None)

  • text (str) – Text, Text label to draw alongside properties (never None)

draw_color(context, node)

Color of the socket icon

Parameters:
  • context (Context | None) – (never None)

  • node (Node | None) – Node, Node the socket belongs to (never None)

Returns:

Color, (array of 4 items, in [0, 1])

Return type:

bpy_prop_array[float]

classmethod draw_color_simple()

Color of the socket icon

Returns:

Color, (array of 4 items, in [0, 1])

Return type:

bpy_prop_array[float]

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