I know how I control emissive objects materials with Animation Nodes, but I dont find a way to hook up the emissive strength from a light source - eg. Area Light etc - and i dont get the correct data path for an Attribute Output…
bpy.data.lamps[‘Lamp’].node_tree.nodes[“Emission”].inputs[1].default_value = y
Where “Lamp” is the name of the lamp (not the lamp object) and “y” is the value you want for it.
Copying the data path gives you:
nodes[“Emission”].inputs[1].default_value
But you need to know what it is derived from and there the Python For Blender manuals comes in handy… Just putting an Object into this will not work because a Lamp is not an Object, it is a Lamp, so you must find the data structure for Lamps. I guess you already know that “[Object].nodes[“Emission”].inputs[1].default_value” doesn’t work. I could write a node to give you the lamps in your project, it would take me 5 minutes, but there is no real need and I would end up writing little nodes for everything!