Document how to use group nodes in custom node trees #80827
Labels
No Label
Meta
Good First Issue
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Eevee & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds, Tests & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#80827
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Maybe I'm missing something, but I could not find documentation on how to use group nodes in custom node trees. The simplest solution is probably to provide an example in the Python docs on the
bpy.types.NodeCustomGroup
site. Without documenting how this is supposed to be done, we'll likely get more reports like blender/blender#76591.@randum provided an initial script that can be used. It needs to be refined a bit more though.
node_group.py
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @randum, @JacquesLucke
Added subscriber: @Jeroen-Bakker
I have started implementing group nodes in Sverchok and I have got some new information which can be added into documentation.
Any addon which uses custom sockets should implement
NodeSocketInterface
classes for each custom socket. Socket interface hasbl_socket_idname
attribute which should keepbl_idname
of normal socket. Unlike normal sockets interface sockets should be added intotree.inputs
ortree.outputs
collections. When a socket is plugged to virtual socket of group node the node searches appropriate socket interface by theirbl_socket_idname
attribute and adds it intotree.inputs or outputs
collection. The interface socket can have and draw its properties in node interface panel. According its properties sockets in group node can change their behaviour.In documentation I have found some methods (
register_properties
,init_socket
,from_socket
) which actual interface sockets does not have. Probably documentation is outdated?File "<blender_console>", line 1, in
https://docs.blender.org/api/current/bpy.types.NodeSocketInterface.html#bpy.types.NodeSocketInterface.init_socket
Also there is PR on Github dedicated creating UI for node groups. Probably link also can be useful.
https://github.com/nortikin/sverchok/pull/3624
Added subscriber: @AquaticNightmare
Added subscriber: @lichtwerk
Added subscriber: @Zeastin
Added subscriber: @timodriaan