Can't access inputs of group nodes by name #36808

Closed
opened 2013-09-24 12:41:23 +02:00 by Lech Swirski · 4 comments

%%%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.%%%

%%%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.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%This has already been fixed in r59589:
https://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59589

Fix is available in the builder.blender.org builds and will be in the next release.%%%

%%%This has already been fixed in r59589: https://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59589 Fix is available in the builder.blender.org builds and will be in the next release.%%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Author

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

%%%My bad, I tried searching for it but couldn't find anything. Thanks for the quick response.%%%
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#36808
No description provided.