📜  Blender 在动画期间更改文本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:47.482000             🧑  作者: Mango

代码示例1
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)