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-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
ResolutionInvestigate2010-11-17 18:40campbellbarton
close_date2010-11-17 18:402010-11-17 18:40campbellbarton
status_idOpen2010-11-17 18:40campbellbarton
File Added13644: pose_lost_fresh.blend2010-11-17 12:56artfunkel
File Added13643: pose_lost.blend2010-11-17 12:56artfunkel
summaryScene.frame_set() breaks pose restore2010-11-17 05:58campbellbarton
ResolutionNone2010-11-14 12:58ton
assigned_tonone2010-11-14 12:58ton