copy keyframes via script
by jakob schindegger
on
May 14, 2008 at 11:10:45 am
hi
i finished my script to convert one effect to another. in my case i needed to switch the 3rd party FE-Toner to the built-in Tritone Effect. Except the fact that i can only copy none keyframed effects it works like a charm. At least on my system.
i am looking for a way to copy all keys of one property to another property using the script.
is there an easy way to do that or do i really have to save every value of every keyframe and then create these values on the new property? does anyone has written a function doing that, he or she would share or maybe someone has a clue how to easily handle this problem.
thanks in advance
jakob
before i posted it in the wrong forum. i hope that someone has an idea.
Re: copy keyframes via script by Dan Ebberts on May 14, 2008 at 2:30:51 pm
I'm not aware of a general way to do this. I've always ended up writing a custom routine that takes advantage of whatever I know about the keyframes. For example if you know that all the keyframes are linear, you can leave out a bunch of stuff that you'd otherwise have to check for.
Re: copy keyframes via script by jakob schindegger on May 15, 2008 at 11:05:33 am
Thanks Dan for the reply.
It's a pity that just copying keyframes can't be done in one step. But after i figured out how the keyframe attributes work i could finalize my script. If i find the time i will pack it into a function.
In case anyone is interested in a script which switches the FE-Toner to the built-in Tritone Effect, just reply to this post.