Representation of a Blender Shader Node input socket.

Attributes
instance—
node_name—
input_name—
valueAnyGet value of the default_value of the input socket.
Methods
as_bpy()NodeSocketGet a pointer to the Blender node input socket. Useful for sliders.
draw_prop()Draw a slider for this input in the UI.

Attributes

NodeInput.instance

source

No description yet.

NodeInput.node_name

source

No description yet.

No description yet.

NodeInput.value: Any

source

Get value of the default_value of the input socket.

Methods

NodeInput.as_bpy() → NodeSocket

source

Get a pointer to the Blender node input socket. Useful for sliders.

Returns NodeSocket — Pointer to the Blender node input socket.

NodeInput.draw_prop(layout: UILayout, text: str)

source

Draw a slider for this input in the UI.

ParameterTypeDescription
layoutUILayoutLayout to draw the slider in.
textstrText to display next to the slider.