Page MenuHome

Keyframed Custom Props are not updated as expected when render
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.79

Blender Version
Broken: version: 2.93.4, branch: master, commit date: 2021-08-31 09:23, hash: rBb7205031cec4

Short description of error
When keyframe a custom prop, the value does not changed as expected when render. I have noticed that problem is worrts when use render from command line.

Maybe related to T74000

Attached a blend file that contains a simple script that uses a handler to print the value. I have added a custom prop named id and keyframed with a value from 1 to 5 for each frame.

To reproduce:

  1. Open file
  2. Run script
  3. Open console output
  4. Move the timeline and look at the printed value.
  5. Press F12 and review printed values.

5b) Use command line to render (see script for details).

Here a video:

Event Timeline

@Sergey Sharybin (sergey) This is the bug we were talking in the chat. Let me know if you need more info or any test file.

This works with an evaluated object, so looks like this is just the original object not having animation evaluated.

def frame_update(scene, depsgraph):
    ob = bpy.data.objects['Cube'].evaluated_get(depsgraph)