Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25588] Not work fcurve.keyframe_points.add

Date:
2011-01-11 15:41
Priority:
3
State:
Closed
Submitted by:
t yama (khuuyj)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
[#25596]
Patches:
 
Summary:
Not work fcurve.keyframe_points.add
Detailed description
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

Followup

Message
  • Date: 2011-01-11 19:52
  • Sender: Campbell Barton
  • Could you pose an example file, this works for me in r34256
  • Date: 2011-01-11 23:57
  • Sender: t yama
  • 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.


  • Date: 2011-01-13 15:32
  • Sender: Campbell Barton
  • fixed in svn r34298. this was a bug in blenders use of default arguments for flag enums -eg: add(1, 2, {'REPLACE', FAST})
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2011-01-13 15:32campbellbarton
close_dateNone2011-01-13 15:32campbellbarton
StatusInvestigate2011-01-13 15:32campbellbarton
details 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 2011-01-12 04:45blendix
details 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 2011-01-11 19:52campbellbarton
assigned_tonone2011-01-11 19:45ton
details 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 2011-01-11 19:45ton
StatusNew2011-01-11 19:45ton

Changes:

Blender 2.x BF release: Blender 2.6 Bug Tracker
   [#25596] bpy.types.FCurveKeyframePoints.add() does not add any Keyframe and returns None (Relation: Duplicates)