Python Option for Automating Virtual Node Socket on Custom Nodes
In blender's built-in node systems, there are some nodes with the grey socket that adds a new socket when a link is connected. In python, this is bpy.types.NodeSocketVirtual, and it can be added to custom nodes, but then it will require more code to add sockets when a link is connected, which is possible, but it would be much easier if it automatically did this. What I propose adding is: an automate property to bpy.types.NodeSocketVirtual, as well as a boolean property to only allow some sockets to be created with it, and an enum set where the bl_idname values of unsupported sockets can be entered, and only using this enum set if a specific boolean property to allow disabling some sockets is set to True. Below is an example of how it could be used.
0 Comments