NodeSocket(bpy_struct)¶
base class — bpy_struct
subclasses —
NodeSocketStandard
-
class
bpy.types.
NodeSocket
(bpy_struct)¶ Input or output socket of a node
-
bl_idname
¶ Type: string, default “”, (never None)
-
enabled
¶ Enable the socket
Type: boolean, default False
-
hide
¶ Hide the socket
Type: boolean, default False
-
hide_value
¶ Hide the socket input value
Type: boolean, default False
-
identifier
¶ Unique identifier for mapping sockets
Type: string, default “”, (readonly, never None)
-
is_linked
¶ True if the socket is connected
Type: boolean, default False, (readonly)
-
is_output
¶ True if the socket is an output, otherwise input
Type: boolean, default False, (readonly)
-
link_limit
¶ Max number of links allowed for this socket
Type: int in [1, 4095], default 0
-
name
¶ Socket name
Type: string, default “”, (never None)
-
show_expanded
¶ Socket links are expanded in the user interface
Type: boolean, default False
-
type
¶ Data type
Type: enum in [‘CUSTOM’, ‘VALUE’, ‘INT’, ‘BOOLEAN’, ‘VECTOR’, ‘STRING’, ‘RGBA’, ‘SHADER’], default ‘VALUE’
-
links
¶ List of node links from or to this socket (readonly)
-
draw
(context, layout, node, text)¶ Draw socket
Parameters:
-
Inherited Properties
Inherited Functions
References