Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#24690] Scene.frame_set() breaks pose restore *NEED BLEND FILE*
Date:
2010-11-12 21:56
Priority:
3
State:
Closed
Submitted by:
Tom Edwards (
artfunkel
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Scene.frame_set() breaks pose restore *NEED BLEND FILE*
Detailed description
Calling Scene.frame_set() in a script, even if it doesn't change the frame, breaks calls to bpy.ops.pose.paste() and bpy.ops.poselib.browse_interactive(). They report success, but the pose is not changed.
Curiously, it doesn't matter when you set the frame. Before copying, before pasting, or after pasting; it always breaks.
Example:
import bpy
bpy.ops.pose.copy()
bpy.ops.pose.rot_clear()
bpy.context.scene.frame_set(1) # comment this line and paste() works
bpy.ops.pose.paste()
Followup
Message
Date
: 2010-11-14 12:58
Sender
:
Ton Roosendaal
Assigned to campbell.
Date
: 2010-11-17 05:58
Sender
:
Campbell Barton
tried this and it works as I expected, setting the frame made no difference.
could you provide a blend file?
Date
: 2010-11-17 12:56
Sender
:
Tom Edwards
I tried running the script in a new blend, and did have some trouble reproducing the bug. It only happened the first time, after which changing the frame stopped updating the armature's pose for some reason, allowing the paste op to work. (I can't reproduce /that/ bug any more, unfortunately.)
In both of the attached blends pose.paste() currently fails every time on latest SVN.
Date
: 2010-11-17 18:40
Sender
:
Campbell Barton
fixed in svn r33140.
The animation system was being re-evaluated when the script finished loosing any un-keyed values.
Attached Files:
Name
Date
Download
pose_lost.blend
2010-11-17 12:56
Download
pose_lost_fresh.blend
2010-11-17 12:56
Download
Changes:
Field
Old Value
Date
By
Resolution
Investigate
2010-11-17 18:40
campbellbarton
close_date
2010-11-17 18:40
2010-11-17 18:40
campbellbarton
status_id
Open
2010-11-17 18:40
campbellbarton
File Added
13644: pose_lost_fresh.blend
2010-11-17 12:56
artfunkel
File Added
13643: pose_lost.blend
2010-11-17 12:56
artfunkel
summary
Scene.frame_set() breaks pose restore
2010-11-17 05:58
campbellbarton
Resolution
None
2010-11-14 12:58
ton
assigned_to
none
2010-11-14 12:58
ton