I have a Cycles material node group like this:
I can access the user-specified color (red) like this:
bpy.data.objects["Suzanne"].data.materials[0].node_tree.nodes.get("MyNodeGroup").inputs[0].default_value[:]
which gives...
(1.0, 0.0, 0.0, 1.0)
I can also hook an image-texture node into that node group like this:
However, bpy.data.objects["Suzanne"].data.materials[0].node_tree.nodes.get("MyNodeGroup").inputs[0].default_value[:]
still gives (1.0, 0.0, 0.0, 1.0)
.
How can I access the image node? I'd like to get the associated filename and/or image. Thanks!