I'm trying to animate the colour and strength properties of an emission shader based on external data using script. I add a cube and give it an emission shader. I can alter the strength property using:
I then try to add a keyframe on the strength property using:
But I can't get the correct data_path. I must be missing something fundamental here. I have quite limited scripting experience in blender.
Code suggestions gratefully received.