Maniphest T25588

Not work fcurve.keyframe_points.add
Closed, Resolved

Assigned To
Campbell Barton (campbellbarton)
Authored By
t yama (khuuyj)
Jan 11 2011, 3:41 PM
Tags
  • BF Blender
  • Add-ons (BF-Blender)
Subscribers
Campbell Barton (campbellbarton)
t yama (khuuyj)
Ton Roosendaal (ton)

Description

Duplicates: T25596

r34074 : http://www.blender.org/download/get-256-beta/
>>> a = bpy.data.actions['nuko008-2.Track5']
>>> f = a.fcurves[0]
>>> k = f.keyframe_points.add(1,0.5)
>>> print(k)
<bpy_struct, Keyframe at 0xc80de88>

r34256M : trunk
>>> a = bpy.data.actions['nuko008-2.Track5']
>>> f = a.fcurves[0]
>>> k = f.keyframe_points.add(1,0.5)
>>> print(k)
None

from UI,enable

Event Timeline

t yama (khuuyj) edited a custom field.Jan 11 2011, 3:41 PM
Ton Roosendaal (ton) added a comment.Jan 11 2011, 7:45 PM

For campbell!

Campbell Barton (campbellbarton) added a comment.Jan 11 2011, 7:52 PM

Could you pose an example file, this works for me in r34256

t yama (khuuyj) added a comment.Jan 11 2011, 11:57 PM

Thanks.

I couldn't submit file in attachements,I uploaded at this url
https://sites.google.com/site/khuuyjblend/home/blender/blendfiles/fcurve_not_work.zip?attredirects=0&d=1

This script is to make rig,preset action,and lipsync action from vsq file.
This zip file has blend file and vsq file.
that vsq file is from VOALOID homepage in Crypton.co.ltd,so not distribute to others,please.

Now I'm making the script for Blender2.5, and use the latest version to check to it work.
It often happend that drivers can not work.
But in this problem,it does not stop the script by error,only can not fcurve.keyframe_points.add,finish normaly.


Campbell Barton (campbellbarton) added a comment.Jan 13 2011, 3:32 PM

fixed in svn r34298. this was a bug in blenders use of default arguments for flag enums -eg: add(1, 2, {'REPLACE', FAST})

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Jan 13 2011, 3:32 PM