base classes — bpy_struct, NodeSocket

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

class bpy.types.NodeSocketStandard(NodeSocket)

List of node links from or to this socket (readonly)

draw(context, layout, node, text)

Draw socket

  • 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
Return type:float array of 4 items in [0, 1]

Inherited Properties

Inherited Functions

Previous topic


Next topic