📅  最后修改于: 2022-03-11 14:45:47.482000             🧑  作者: Mango
import bpy
scene = bpy.context.scene
obj = scene.objects['Text']
def recalculate_text(scene):
obj.data.body = 'Current frame: ' + str(scene.frame_current)
bpy.app.handlers.frame_change_pre.append(recalculate_text)