Discussion:
[Bf-python] API : insert keyframe on bones that are not in visible bone layer
Julien Duroure
2014-11-16 06:57:36 UTC
Permalink
Hi all,

It seems that this is not possible to insert keyframes on non visible bones
(on bones that are on non active bone layer. But the API operator returns
'True' value anyway.

obj = bpy.data.objects['Armature']
obj.pose.bones['Bone'].keyframe_insert('location')

Is there a way to correctly add this keyframe on non visible bone ?
This is weird that the operator return True, while keyframe is not inserted.

Thanks !
--
Julien DUROURE
http://julienduroure.com
Julien Duroure
2014-11-21 12:01:11 UTC
Permalink
Hi all,

Any ideas ?

Thanks.

I will try to get someone during the WE in IRC if nedded :)
Post by Julien Duroure
Hi all,
It seems that this is not possible to insert keyframes on non visible
bones (on bones that are on non active bone layer. But the API operator
returns 'True' value anyway.
obj = bpy.data.objects['Armature']
obj.pose.bones['Bone'].keyframe_insert('location')
Is there a way to correctly add this keyframe on non visible bone ?
This is weird that the operator return True, while keyframe is not inserted.
Thanks !
--
Julien DUROURE
http://julienduroure.com
--
Julien DUROURE
http://julienduroure.com
Loading...