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.
Examples:
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:
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.
Yeah, I think I will because in this case in 2.67 when the node groups were overhauled this counts like a broken features. But any other opinion before submitting will be good
i think there are other bug also for some other method to access I/O
but will avhe to see it it is corrected
right now only way i was able to do it was with index method
other 2 methods did nto work!
Well, I opened a bug and Lukas pointed me in the right direction thankfully.
Turns out you don’t have to reference the Input group node, but group.inputs, as in 2.67.