Version: 2.82a (Linux 64-bit)
This is my first python-related bug report so I apologize if my code is actually bad.
How to reproduce:
- open blender in the console
- open the attached file
- run the script
- scrub/change frames and observe the console output (it works correctly).
- now render an animation and observe the console output
The app handler continues to run and print the correct scene number, but does not update the values which are animated. This makes no sense.
import bpy
cube = bpy.data.objects['Cube']
def frame_change(dummy):
print("The current frame is " + str(bpy.context.scene.frame_current))
print("Cube's X location is " + str(cube.location.x))
print("Cube's custom property is " + str(cube['prop']))
bpy.app.handlers.frame_change_post.append(frame_change)