Page MenuHome

Creating links to nowhere
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.34

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-21 17:59, hash: rB13e3a1c53222

Short description of error
It is possible to create socket for frame node and connect to it.
I don't understand why frame node instance has an inputs/outputs attributes. And I don't understand why frame nodes are nodes if they have nothing common with them.


Exact steps for others to reproduce the error

  • create custom node tree
  • create frame node
  • add input socket for new node (via API)
  • add other normal node
  • create new link between created socket of frame node and socket of the normal node (via API)

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.May 8 2020, 11:34 AM

Please share your example .blend file (including the script that creates the socket and link).
This just saves some time for devs to take a look at this. Thx in advance...

Sergey (randum) added a comment.EditedMay 8 2020, 12:12 PM
import bpy

tree = bpy.data.node_groups['NodeTree']
frame_node = tree.nodes['Frame']
normal_node = tree.nodes['Custom Node']

frame_socket = frame_node.inputs.new('MyCustomSocket', 'Test')
normal_socket = normal_node.outputs[0]

tree.links.new(normal_socket, frame_socket)

Philipp Oeser (lichtwerk) changed the task status from Needs Information from User to Confirmed.May 8 2020, 12:49 PM

Thx getting back, will have a quick look...

Jacques Lucke (JacquesLucke) changed the subtype of this task from "Report" to "Bug".May 11 2020, 5:31 PM