blendersynth.blender.nodes.node_group
Custom node groups
- class blendersynth.blender.nodes.node_group.CompositorNodeGroup(name, node_tree)[source]
Node Group for use in the compositor
- class blendersynth.blender.nodes.node_group.NodeGroup(name, node_tree)[source]
Generic Node Group
- __init__(name, node_tree)[source]
A generic NodeGroup class
- Parameters:
name (
str
) – Name of node groupnode_tree (
NodeTree
) – NodeTree to add group to
- add_socket(socket_type, name, in_out)[source]
Create a new socket, compatible with Blender <4
- Parameters:
socket_type (
str
) – Type of socketname (
str
) – Name of socketin_out (
str
) – INPUT or OUTPUT
- property inputs: dict
Input sockets
- link(from_socket, to_socket)[source]
Link two sockets in the group
- Parameters:
from_socket (
NodeSocket
) – Socket to link fromto_socket (
NodeSocket
) – Socket to link to
- Return type:
NodeLink
- property outputs: dict
Output sockets