How do I use python to set keyframes for the diffuse colour of materials in blender render. This is what I got, but it doesn't work.
mat = bpy.data.materials("Abc") mat.diffuse_color = (1.0,0.0,0.0) mat.keyframe_insert("default_value", frame=scene.frame_current)
I have an existing material that I want to set keyframes for, but I don't know how to do it. I tried searching it up and only saw python scripts for cycles materials.