Error baking action #64733

Closed
opened 2019-05-16 23:23:32 +02:00 by Jonathan Lampel · 8 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

Blender Version
Broken: version: 2.80 (sub 66), branch: master, commit date: 2019-05-16 12:17, hash: e60890075b

Short description of error
Baking an action, either to pose or object data, results in an error - 'Scene' object has no attribute 'update'. This is likely due to the recent depsgraph change.

Exact steps for others to reproduce the error

  1. Select an object that has at least two keyframes
  2. Go to Object / Animation / Bake Action
  3. Click OK
**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13 **Blender Version** Broken: version: 2.80 (sub 66), branch: master, commit date: 2019-05-16 12:17, hash: `e60890075b` **Short description of error** Baking an action, either to pose or object data, results in an error - 'Scene' object has no attribute 'update'. This is likely due to the recent depsgraph change. **Exact steps for others to reproduce the error** 1. Select an object that has at least two keyframes 2. Go to Object / Animation / Bake Action 3. Click OK

Added subscriber: @JonathanLampel-4

Added subscriber: @JonathanLampel-4
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2019-05-17 10:09:32 +02:00
Member

Confirmed, checking...

Confirmed, checking...
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

@Sergey : just checking if you had scene.update() on the radar for updating after e693918d40?

This one here is fixed by
P977: #64733



diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py
index fa833b273ec..1ef97b24a3f 100644
--- a/release/scripts/modules/bpy_extras/anim_utils.py
+++ b/release/scripts/modules/bpy_extras/anim_utils.py
@@ -104,7 +104,7 @@ def bake_action_objects_iter(
         if frame is None:
             break
         scene.frame_set(frame)
-        scene.update()
+        bpy.context.view_layer.update()
         for iter in iter_all:
             iter.send(frame)
     scene.frame_set(frame_back)

but there are lots more to do.... should I commit this and do one by one (or do you prefer to update all in one go?)

@Sergey : just checking if you had scene.update() on the radar for updating after e693918d40? This one here is fixed by [P977: #64733](https://archive.blender.org/developer/P977.txt) ``` diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py index fa833b273ec..1ef97b24a3f 100644 --- a/release/scripts/modules/bpy_extras/anim_utils.py +++ b/release/scripts/modules/bpy_extras/anim_utils.py @@ -104,7 +104,7 @@ def bake_action_objects_iter( if frame is None: break scene.frame_set(frame) - scene.update() + bpy.context.view_layer.update() for iter in iter_all: iter.send(frame) scene.frame_set(frame_back) ``` but there are lots more to do.... should I commit this and do one by one (or do you prefer to update all in one go?)

@lichtwerk, this is a correct fix. Please go ahead and commit :)

@lichtwerk, this is a correct fix. Please go ahead and commit :)

This issue was referenced by dfbbc5067e

This issue was referenced by dfbbc5067e403fd85009686be041d8562be4bf74
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
4 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#64733
No description provided.