Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions copy keyframes via script

  • copy keyframes via script

    Posted by Jakob Schindegger on May 14, 2008 at 11:10 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.

    Jakob Schindegger replied 18 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 14, 2008 at 2:30 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.

    Dan

  • Jakob Schindegger

    May 15, 2008 at 11:05 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.

    jakob

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy