Unable to create group input/output sockets with python #37776
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info 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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#37776
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
FreeBSD 9.2 amd64 Nvidia gt520
Blender Version
Broken: Blender 2.69
Worked: Blender 2.66
Short description of error
Using python I can create a group and add group input and output nodes but I can't add sockets to these nodes to connect anything to. I can create and connect other nodes within the group.
Exact steps for others to reproduce the error
In 2.66 the following script works, it creates a group, adds a node and connects the node to the group in/out sockets.
From 2.67 node groups started to be edited over the top of the nodes display, this introduced group input and output nodes. This would mean the script would be changed to
While that much works in python I can't get a new input or output socket created to make connections.
I expect group_inputs.outputs.new() to be the way to do this but it fails without error.
group_inputs.inputs.new() does create sockets but on the wrong side showing an error - Undefined Socket Type
Manually created sockets appear to be available in test_group.inputs but test_group.inputs.new() also fails without error.
There is an operator bpy.ops.node.tree_socket_add() that will create sockets but it is only available when a node editor is in context.
Changed status to: 'Open'
Added subscriber: @sambler
Added subscriber: @gandalf3
Changed status from 'Open' to: 'Archived'
We found the missing link, use NodeSocketFloat instead of VALUE for group.inputs.new()
Though it would be helpful if inputs.new('VALUE','grpInput') provided some sort of error.