NodeSocketStandard(NodeSocket)

base classes — bpy_struct, NodeSocket

subclasses — NodeSocketBool, NodeSocketColor, NodeSocketControlFlow, NodeSocketEmitters, NodeSocketEvents, NodeSocketFloat, NodeSocketFloatAngle, NodeSocketFloatFactor, NodeSocketFloatPercentage, NodeSocketFloatTime, NodeSocketFloatUnsigned, NodeSocketForces, NodeSocketImage, NodeSocketInt, NodeSocketIntFactor, NodeSocketIntPercentage, NodeSocketIntUnsigned, NodeSocketObject, NodeSocketShader, NodeSocketString, NodeSocketVector, NodeSocketVectorAcceleration, NodeSocketVectorDirection, NodeSocketVectorEuler, NodeSocketVectorTranslation, NodeSocketVectorVelocity, NodeSocketVectorXYZ, NodeSocketVirtual

class bpy.types.NodeSocketStandard.NodeSocketStandard(NodeSocket)
links

List of node links from or to this socket.

Note

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

(readonly)

draw(context, layout, node, text)

Draw socket

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

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

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

draw_color(context, node)

Color of the socket icon

Parameters

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

Returns

Color

Return type

float array of 4 items in [0, 1]

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

  • bpy_struct.id_data

  • NodeSocket.name

  • NodeSocket.label

  • NodeSocket.identifier

  • NodeSocket.is_output

  • NodeSocket.hide

  • NodeSocket.enabled

  • NodeSocket.link_limit

  • NodeSocket.is_linked

  • NodeSocket.show_expanded

  • NodeSocket.hide_value

  • NodeSocket.node

  • NodeSocket.type

  • NodeSocket.display_shape

  • NodeSocket.bl_idname

  • NodeSocket.links

Inherited Functions

  • bpy_struct.as_pointer

  • bpy_struct.driver_add

  • bpy_struct.driver_remove

  • bpy_struct.get

  • bpy_struct.is_property_hidden

  • bpy_struct.is_property_overridable_library

  • bpy_struct.is_property_readonly

  • bpy_struct.is_property_set

  • bpy_struct.items

  • bpy_struct.keyframe_delete

  • bpy_struct.keyframe_insert

  • bpy_struct.keys

  • bpy_struct.path_from_id

  • bpy_struct.path_resolve

  • bpy_struct.pop

  • bpy_struct.property_overridable_library_set

  • bpy_struct.property_unset

  • bpy_struct.type_recast

  • bpy_struct.values

  • NodeSocket.draw

  • NodeSocket.draw_color

  • NodeSocket.bl_rna_get_subclass

  • NodeSocket.bl_rna_get_subclass_py