Please take a look at this video:
My objective was to have the text follow the camera such that it would be stationary throughout the camera movement and able to convey information about the current frame.
However, even after linking the text object to the camera by setting the camera as a parent of the text, the text doesn't follow the camera correctly when rendering to an animation, instead jittering like in the gif. Everything works fine when rendering the frames individually and when displaying in the viewport. Any ideas as to what might be causing this, and generally why rendering an animation isn't the same as consecutively rendering the frames of that animation?
Thanks for your time from a new user :)
EDIT: After having another look at the problem, its linked to the script I use to update the body of the text each frame:
import bpy
def update(self):
text = bpy.data.objects['Annotation']
frame = bpy.context.scene.frame_current
text.data.body = text["frame_data"][str(frame)]
def register():
bpy.app.handlers.frame_change_post.append(update)
def unregister():
bpy.app.handlers.frame_change_post.remove(update)
register()
The jittering starts only after the script has been registered