Duplicates: T25588
OS: Linux (Ubuntu 10.04 64 bit)
Blender: r34269
When trying to add a keyframe to an existing fcurve with python nothing happens and the add() function also returns None, instead of a new Keyframe instance.
I was using this in my script without problems for months and now it brakes.
Refering to this documentation it should work: http://www.blender.org/documentation/blender_python_api_2_56_0/bpy.types.FCurveKeyframePoints.html#bpy.types.FCurveKeyframePoints
Example code:
someFCurve.keyframe_points.add(frame=bpy.context.scene.frame_current,value=1.0)