Yes that is the code! I want to set up an automated process that is being run by another program 'Autoit" and what I want is a template script that can be changed by this and run for a minimum of 60 frames. I might try sifting through your example and see where that leads me.
for obj in bpy.context.selected_objects:
for fcurve in obj.animation_data.action.fcurves:
for keyframe_point in fcurve.keyframe_points:
x, y = keyframe_point.co
if x >= start and x <= end and x not in frames:
frames.append(x)
for frame in frames:
bpy.context.scene.frame_current = frame
bpy.context.scene.render.filepath = os.path.join(output_path, “%05d” % frame)
bpy.ops.render.render(write_still=True)
Thanks for all your help. I’m about to post a newy on how can I centre the text in the camera veiwport without converting it to a mesh and centring its origin to the cursor.