NodeSocketStandard(NodeSocket)

base classes — bpy_struct, NodeSocket

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

class bpy.types.NodeSocketStandard(NodeSocket)

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

draw(context, layout, node)

Draw socket

Parameters:
  • layout (UILayout, (never None)) – Layout, Layout in the UI
  • node (Node, (never None)) – Node, Node the socket belongs to
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]

Inherited Properties

Inherited Functions

Previous topic

NodeSocketShader(NodeSocketStandard)

Next topic

NodeSocketString(NodeSocketStandard)