I have a simpĺe python script that triggers an animation base on the location of a cube.
import bpy
scene = bpy.context.scene
obj = scene.objects['Text']
def recalculate_text(scene):
x = scene.objects['Cube'].location[0]
obj.data.body = '{0:.1f}'.format(x)
bpy.app.handlers.frame_change_pre.append(recalculate_text)
Using a text Object it shows the location of the cube in the Viewport.
The problem is that because my python skills are very basic, i can't Render the animation; once i hit "Render animation" ( Itried: EEVEE and CYCLES: Image sequence and video) it only shows the first frame of the text object. Here is the Blend File
evaluated_get(depsgraph)on the cube itself -> Demo: https://pasteall.org/iA93, output as expected: https://i.stack.imgur.com/dwNhz.png – brockmann Nov 19 '20 at 18:16