Skip to main content
added 29 characters in body
Source Link

I make a animation of a cube that grows in size. I want to be able to render the changing values of the nearby text field. I see the numbers changing dynamically in the view-port but when I render out the final animation, the value doesn't change. Any advice?

My Code..

import bpy
scene = bpy.context.scene
obj = scene.objects['Text']

def recalculate_text(scene):
    obj.data.body = 'The Size Of The Cube Is... ' + '\n' + str( round(bpy.data.objects['Cube'].scale[2], 2) )

bpy.app.handlers.frame_change_pre.append(recalculate_text)

scene = bpy.context.scene obj = scene.objects['Text'] def recalculate_text(scene):
obj.data.body = 'The Size Of The Cube Is... ' + '\n' + str( round(bpy.data.objects['Cube'].scale[2], 2) ) bpy.app.handlers.frame_change_pre.append(recalculate_text)

I make a animation of a cube that grows in size. I want to be able to render the changing values of the nearby text field. I see the numbers changing dynamically in the view-port but when I render out the final animation, the value doesn't change. Any advice?

My Code..

import bpy

scene = bpy.context.scene obj = scene.objects['Text'] def recalculate_text(scene):
obj.data.body = 'The Size Of The Cube Is... ' + '\n' + str( round(bpy.data.objects['Cube'].scale[2], 2) ) bpy.app.handlers.frame_change_pre.append(recalculate_text)

I make a animation of a cube that grows in size. I want to be able to render the changing values of the nearby text field. I see the numbers changing dynamically in the view-port but when I render out the final animation, the value doesn't change. Any advice?

My Code..

import bpy
scene = bpy.context.scene
obj = scene.objects['Text']

def recalculate_text(scene):
    obj.data.body = 'The Size Of The Cube Is... ' + '\n' + str( round(bpy.data.objects['Cube'].scale[2], 2) )

bpy.app.handlers.frame_change_pre.append(recalculate_text)
added 309 characters in body
Source Link

I make a animation of a cube that grows in size. I want to be able to render the changing values of the nearby text field. I see the numbers changing dynamically in the view-port but when I render out the final animation, the value doesn't change. Any advice?

My Code..

import bpy

scene = bpy.context.scene obj = scene.objects['Text'] def recalculate_text(scene):
obj.data.body = 'The Size Of The Cube Is... ' + '\n' + str( round(bpy.data.objects['Cube'].scale[2], 2) ) bpy.app.handlers.frame_change_pre.append(recalculate_text)

I make a animation of a cube that grows in size. I want to be able to render the changing values of the nearby text field. I see the numbers changing dynamically in the view-port but when I render out the final animation, the value doesn't change. Any advice?

I make a animation of a cube that grows in size. I want to be able to render the changing values of the nearby text field. I see the numbers changing dynamically in the view-port but when I render out the final animation, the value doesn't change. Any advice?

My Code..

import bpy

scene = bpy.context.scene obj = scene.objects['Text'] def recalculate_text(scene):
obj.data.body = 'The Size Of The Cube Is... ' + '\n' + str( round(bpy.data.objects['Cube'].scale[2], 2) ) bpy.app.handlers.frame_change_pre.append(recalculate_text)

Source Link

Animating text field, displaying dynamic scale of an object

I make a animation of a cube that grows in size. I want to be able to render the changing values of the nearby text field. I see the numbers changing dynamically in the view-port but when I render out the final animation, the value doesn't change. Any advice?