Drivers don't update while rendering an animation #78893

Closed
opened 2020-07-13 19:26:32 +02:00 by Bent Hillerkus · 9 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.48

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-11 18:41, hash: ee5c2f6ead
Tried: 2.83 releases, 2.82, 2.81, 2.80
Worked: 2.79 (had to recreate the file, but loading that one into 2.8 shows the same behaviour)

Short description of error
When using drivers to for example keep the scaling of an object proportional, the value change will be updated during

  • viewport playback (with a slight lack, implying stretching that isn't actually there)
  • single frame rendering (F+12)
  • viewport animation rendering
    However when rendering an animation the drivers will not update and the object will appear stretched.

Frame 17 of an animation render (it happens on all, 17 is just as an example)
image.png
Frame 17 rendered by rendering a single frame when the playhead is on frame 17
image.png

Exact steps for others to reproduce the error

  • Animate the x-axis of a cube to scale (two single keyframes)
  • Copy that property as a driver and paste it to the y-axis and the z-axis

Render the animation (CRTL+F+12)

Only the x-axis will change, the others will have the value they had in the viewport at the time you've started the render.

driver bug.blend

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.48 **Blender Version** Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-11 18:41, hash: `ee5c2f6ead` Tried: 2.83 releases, 2.82, 2.81, 2.80 Worked: 2.79 (had to recreate the file, but loading that one into 2.8 shows the same behaviour) **Short description of error** When using drivers to for example keep the scaling of an object proportional, the value change will be updated during - viewport playback (with a slight lack, implying stretching that isn't actually there) - single frame rendering (F+12) - viewport animation rendering However when rendering an animation the drivers will not update and the object will appear stretched. Frame 17 of an animation render (it happens on all, 17 is just as an example) ![image.png](https://archive.blender.org/developer/F8691837/image.png) Frame 17 rendered by rendering a single frame when the playhead is on frame 17 ![image.png](https://archive.blender.org/developer/F8691839/image.png) **Exact steps for others to reproduce the error** - Animate the x-axis of a cube to scale (two single keyframes) - Copy that property as a driver and paste it to the y-axis and the z-axis # Render the animation (CRTL+F+12) Only the x-axis will change, the others will have the value they had in the viewport at the time you've started the render. [driver bug.blend](https://archive.blender.org/developer/F8691746/driver_bug.blend)
Author

Added subscriber: @bent

Added subscriber: @bent
Author

I got a friend to try this out and he faced the same issue.
[[ https://streamable.com/4noar7 | (video link)
]]

His system configuration:

gtx 1080, ryzen 2700x, 64gb ddr4/2933mhz```
I got a friend to try this out and he faced the same issue. [[ https://streamable.com/4noar7 | (video link) ]] His system configuration: ```v2.83.1, win10 2004, latest studio driver version gtx 1080, ryzen 2700x, 64gb ddr4/2933mhz```

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Richard Antalik self-assigned this 2020-07-14 23:49:42 +02:00

This is probably due to dependency cycles. You can see this error in console:

Dependency cycle detected:
  OBCube/Transform Component/TRANSFORM_INIT() depends on
  OBCube/Parameters Component/DRIVER(scale) via 'Driver -> Driven Property'
  OBCube/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver'
  OBCube/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform'
  OBCube/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init'
  OBCube/Transform Component/TRANSFORM_LOCAL() via 'Eval'
  OBCube/Transform Component/TRANSFORM_INIT() via 'Transform Init'
Dependency cycle detected:
  OBCube/Transform Component/TRANSFORM_INIT() depends on
  OBCube/Parameters Component/DRIVER(scale) via 'Driver -> Driven Property'
  OBCube/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver'
  OBCube/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform'
  OBCube/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init'
  OBCube/Transform Component/TRANSFORM_LOCAL() via 'Eval'
  OBCube/Transform Component/TRANSFORM_INIT() via 'Transform Init'
Detected 2 dependency cycles
This is probably due to dependency cycles. You can see this error in console: ``` Dependency cycle detected: OBCube/Transform Component/TRANSFORM_INIT() depends on OBCube/Parameters Component/DRIVER(scale) via 'Driver -> Driven Property' OBCube/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver' OBCube/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform' OBCube/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init' OBCube/Transform Component/TRANSFORM_LOCAL() via 'Eval' OBCube/Transform Component/TRANSFORM_INIT() via 'Transform Init' Dependency cycle detected: OBCube/Transform Component/TRANSFORM_INIT() depends on OBCube/Parameters Component/DRIVER(scale) via 'Driver -> Driven Property' OBCube/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver' OBCube/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform' OBCube/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init' OBCube/Transform Component/TRANSFORM_LOCAL() via 'Eval' OBCube/Transform Component/TRANSFORM_INIT() via 'Transform Init' Detected 2 dependency cycles ```
Author

Alright, I wasn't aware that these even exitst. I found the option to use single channels now.
These dependency cycles should put a warning inside the info editor & the status bar and bpy.ops.ui.copy_as_driver_button() should use the corresponding transform channel instead of "single property", if available.
Blender makes it too easy to make this mistake and pretty much hides it from the user until they try to render.
Is there a design task for drivers?

Alright, I wasn't aware that these even exitst. I found the option to use single channels now. These dependency cycles should put a warning inside the info editor & the status bar and `bpy.ops.ui.copy_as_driver_button()` should use the corresponding transform channel instead of "single property", if available. Blender makes it too easy to make this mistake and pretty much hides it from the user until they try to render. Is there a design task for drivers?
Author

It's more complicated. Even transform channels only works in render when set to "transform" space. "local" and "world" space will not work.
driver_bug_redux.blend

The manual doesn't mention any of this and it's not happening in 2.79. Is this desired behaviour?

And the console isn't showing anything on dependency cycles when using any of the Transform Channel options, so it's either not detecting these as self references or the issue of the render looking different than the viewport is not directly related to dependency cycles, I guess.

It's more complicated. Even transform channels only works in render when set to "transform" space. "local" and "world" space will not work. [driver_bug_redux.blend](https://archive.blender.org/developer/F8697253/driver_bug_redux.blend) [The manual](https://docs.blender.org/manual/en/dev/animation/drivers/drivers_panel.html?highlight) doesn't mention any of this and it's not happening in 2.79. Is this desired behaviour? And the console isn't showing anything on dependency cycles when using any of the Transform Channel options, so it's either not detecting these as self references or the issue of the render looking different than the viewport is not directly related to dependency cycles, I guess.
Author

@iss Can you have a look again re the unreported (?) dependency cycles? See my comment above

@iss Can you have a look again re the unreported (?) dependency cycles? See my comment above

@bent Sorry I have missed your comment. I don't have clear or deep knowledge what these spaces really mean. Googling for at least brief explanation resulted in #39393. So I guess you could make new report, I am not really sure if it's a bug or not.

@bent Sorry I have missed your comment. I don't have clear or deep knowledge what these spaces really mean. Googling for at least brief explanation resulted in #39393. So I guess you could make new report, I am not really sure if it's a bug or not.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#78893
No description provided.