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
[#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:45
Sender
:
Ton Roosendaal
For campbell!
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_id
Open
2011-01-13 15:32
campbellbarton
close_date
None
2011-01-13 15:32
campbellbarton
Status
Investigate
2011-01-13 15:32
campbellbarton
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:45
blendix
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:52
campbellbarton
assigned_to
none
2011-01-11 19:45
ton
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:45
ton
Status
New
2011-01-11 19:45
ton
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)