Is there a way to move a keyframe using Python (change the frame at which the keyframe is set)?
The keyframe already exists. I need to access it and move it, with the script.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
This is not hard:
bpy.data.actions[aname].fcurves[i].keyframe_points[j].co = fr1
The tricky part is picking the right
keyframe_points[j] if there are more than one. You'll have to check
fcurve[i].data_path and (if it's a vector data_path like location or rotation*)
fcurve[i].array_index to make sure you're altering the right fcurve.