I've spent far too long googling for this answer. :)
I have a Cycles shader node group called ProteinVR that I created using the node editor. It has two inputs: 
This same node group is used by multiple users (i.e., different objects in the scene use the same node group to generate their materials), but with different inputs. So a different object might look like this: 
I then load the scene from the command line like this:
/my/blender/exec/blender -b /my/blender/file.blend -P /my/blender/script.py
Within the /my/blender/script.py file, I want to be able to determine the input values (color or glossiness) of the node group for each user (object). I've found how to access the node group itself and explore its structure and default values programmatically, but I can't get the specific values being used for each user/object.
Any help you could offer would be most appreciated! First question on stack exchange... hope it goes well. :)
P.S. Blender 2.78, in case it's helpful.
print(color), I get this:<bpy_struct, NodeSocketColor("Color or Image")>.But I need the RGB values of the color (if it's a color) or the filename of the image (if it's an image-texture input).
dir(color)gives['__doc__', '__module__', '__slots__', 'bl_idname', 'bl_rna', 'default_value', 'draw', 'draw_color', 'enabled', 'hide', 'hide_value', 'identifier', 'is_linked', 'is_output', 'link_limit', 'name', 'node', 'rna_type', 'show_expanded', 'type'].I can't for the life of me figure out how to get the actual values from those properties. Thanks!
– jdurrant Apr 08 '17 at 14:48.default_valueof course. That will give you a vector type with RGBA – Jaroslav Jerryno Novotny Apr 08 '17 at 17:58.default_valuething out myself. Thanks for your help. I accepted your answer. – jdurrant Apr 08 '17 at 20:44