Animation not updated when the active shape index isnt set #33682
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#33682
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%See attached blend file. Follow instructions in the internal script "bug" to reproduce the bug.
After generating shape keys per python the shape keys appear in "object data / shape keys". But moving the time slider doesn't animate the object in the 3D view. You first have to click with the mouse into the shape key list box (object data / shape keys) and select one of them, which apparently triggers some internal update. This manual step is tedious / not practicable when you shape-animate many objects that way (which is usually the whole point of scripting).
System: Win 7 64bit
Blender versions tested: 2.64a, 2.65a
%%%
Changed status to: 'Open'
%%%SOLUTION / WORKAROUND:
The problem does not occur if the shape keys (or at least one of them) are added via:
bpy.ops.object.shape_key_add
instead of of
bpy.context.object.shape_key_add
%%%
%%%I wouldn't know what the difference is... but Campbell does!%%%
%%%bpy.ops.object.shape_key_add() is the call made by the add-button in the "object data / shape keys" panel. So I guess it performs some internal update.
bpy.context.object.shape_key_add() seems to modify the internal object data, without notifying the rest of the system about it.
%%%
%%%fixed r53518.%%%
Changed status from 'Open' to: 'Resolved'