I was updating from 2.66 to 2.68 an importer that loads models with cycles materials and creates node groups.
I could update everything find reading the release notes, wiki and this bug report, but what I can’t figure out is why you can’t create node sockets (outputs) for a nodegroupInput unless you create a link to something first.
- Manually you can’t create an output unless you link it to something
- Once you created a link, you can create as many new outputs as you want in the N panel.
So this looks to me to a limitation both in python and in the UI compared to the old way node groups worked.
This code should create a nodeGroupInput with all the sockets(outputs) I want but it doesn’t, and it doesn’t give any warnings either. It just creates a Group input without any socket/outputs:
import bpy NodeGroup= bpy.data.node_groups.new("GroupTest", type='ShaderNodeTree') Input_group = NodeGroup.nodes.new("NodeGroupInput") Input_group.outputs.new('RGBA', "Tex Diffuse") Input_group.outputs.new('RGBA', "Tex Specular") Input_group.outputs.new('RGBA', "Tex Normal")
Can someone confirm this looks like a bug?
This is something important for scripts since you want to create only one group with their inputs but they might not be used always in all materials.