Page MenuHome

Can't access inputs of group nodes by name
Closed, ArchivedPublic


Win 8, GTX 480, Blender 2.68a

When accessing a material node in Python, the `inputs()` collection can normally be (square bracket) indexed either using integer indices or using the string names of the inputs. However, with group nodes, using string indexing does not work, only integer indices work. However, using `find(string)` to get the integer index does work, so `inputs[inputs.find(name)]` works, while `inputs[name]` does not.

Event Timeline

This has already been fixed in r59589:

Fix is available in the builds and will be in the next release.

Lukas Toenne (lukastoenne) changed the task status from Unknown Status to Archived.Sep 24 2013, 3:52 PM

My bad, I tried searching for it but couldn't find anything. Thanks for the quick response.