bpy.data list node
Created by: Durman
Problem statement
I'm thinking of creating new node with list UI with elements of Blender data blocks like objects, materials, collections and cetera. There are already several nodes which use list UI like that - objects in
and set assign material list
nodes. It would be useful to generalize this idea in the separate node. The node won't have any inputs. The only node parameter should be type of data blocks
collection from which to choose elements.
+-----------------+
| data o
| |
| type of data ^ |
| --------------- |
| | item 1 - | |
| | item 2 - | |
| | + | |
| --------------- |
+-----------------+
Right now I'm not sure which behavior will be more convenient in case of changing type of data block when list of elements is not empty. It is possible to reset whole list, to mark elements with wrong type as invalid or do nothing.