Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#26171] Node Groups sockets can't be created through python
Date:
2011-02-21 21:35
Priority:
3
State:
Closed
Submitted by:
Dan Eicher (
dna
)
Assigned to:
Lukas Toenne (lukastoenne)
Category:
Node Editor
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Node Groups sockets can't be created through python
Detailed description
There's no way to create a new in/external socket in the new node group system using group.inputs.new(internal_node.inputs[0]).
I created a patch (and passed it on to phonybone a while back) that had all the rna wrappers necessary to make these new group types good py-citizens but it didn't make it into the trunk commit and I seem to have lost my copy.
Probably just got missed somewhere along the line...
Followup
Message
Date
: 2011-02-22 21:27
Sender
:
Lukas Toenne
Fixed:
You can use the "new" and "expose" functions on group tree inputs and outputs to create new group sockets now. "nodetree.new(name, type)" creates a new unlinked group socket, while "nodetree.expose(socket)" makes a copy of the internal socket "socket" and adds an internal link to the new group socket.
Attached Files:
No Files Currently Attached
Changes:
Field
Old Value
Date
By
status_id
Open
2011-02-22 21:27
lukastoenne
close_date
None
2011-02-22 21:27
lukastoenne
Status
Investigate
2011-02-22 21:27
lukastoenne
assigned_to
none
2011-02-22 13:52
ton
Status
New
2011-02-22 13:52
ton