3
$\begingroup$

I wonder if I can import keyframes (with a python script) only as x keyframe. It seems like I can only set the whole object location at a keyframe, but I want only set the x location, since y location may have different keyframes. Is there any solution for this? I cant get it to work with object.insert_keyframe(data_path='location', frame = key.frame)

Otherwise I don't understand why the channels can be exported independently. I already tried to import the specific x value by setting the current frames to the keyframe and use the objects frame location for y and z value.

$\endgroup$
1
  • 1
    $\begingroup$ Import from where? Do you mean append keyframes form a different blender file? Export independently to? $\endgroup$
    – user1853
    Commented Jun 7, 2016 at 17:23

3 Answers 3

1
$\begingroup$

Select the animated object, in the dopesheet select all keyframes you want to copy, Ctrl C to copy in the clipboard, select the new object, select the channel to be animated, set the cursor to the first frame where you want the copied animation to start, Ctrl V to paste the single animation channel.

$\endgroup$
0
$\begingroup$

To insert single keyframes select the object and type:

bpy.context.object.keyframe_insert('location', index=1)
$\endgroup$
-1
$\begingroup$

Right click on the x-channel in the 3D Viewport's Right Side Property panel and select Insert Single Keyframe.

enter image description here

$\endgroup$
1
  • $\begingroup$ Hi, of course i meant import with a python script (i should have pointed that out more clearly). So is there sth like obj.keyframe_insert(data_path='location_x', frame=key.frame) $\endgroup$
    – Tarcontar
    Commented Jun 7, 2016 at 18:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .