Page 1 of 1

copy paste keys

Posted: December 27th, 2006, 1:21 pm
by geegrafix
Anyone know how to copy, paste keys with a script?

Posted: January 18th, 2007, 3:14 am
by Darkmoon_UK
Hi geegrafix,

Unfortunately I don't think theres a premade set of commands to do this. You'll need to make some functions to read the attributes of your keys into a multidimensional array and create new keys using setValueAtTime() from the array.

PM me if you need to do this and have any questions.

- Chris

Posted: January 30th, 2007, 6:47 am
by geegrafix
Thanks! I sent you a private message.

Posted: January 30th, 2007, 1:26 pm
by lloydalvarez
take a look at Jeff Almasol's Copy Markers Script. You need to write a for loop and grab the keyframes one at a time:



-lloyd

Posted: January 30th, 2007, 10:07 pm
by geegrafix
Thanks Lloyd. My main problem is that the curves don't seem to match up correctly. For example when looking at them in the graph editor.

Posted: May 29th, 2007, 7:48 pm
by julianck
You need to retrieve all of the spatial (spatial tangent, etc.) and temporal (temporal ease, etc.) data from the old keyframe and apply it to the new one.