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
    $\begingroup$ Import from where? Do you mean append keyframes form a different blender file? Export independently to? $\endgroup$ – cegaton Jun 7 '16 at 17:23
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$
-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$
  • $\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 Jun 7 '16 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.