ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

[Scripting] How to copy all keyframes from one property to another?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adirai Maji
[Scripting] How to copy all keyframes from one property to another?
on May 4, 2020 at 11:16:02 pm

I want to copy the keyframes of one property and paste it on another property or same property of another layer using extendscript. How to do that?

Thanks in advance.

==================================================================================================
Thanks in Advance...

- Adirai Maji


Return to posts index

Dan Ebberts
Re: [Scripting] How to copy all keyframes from one property to another?
on May 4, 2020 at 11:41:03 pm

As far as I know, there's no easy way to do it. You have to create a new keyframe, and copy all the attributes from the original keyframe. It's somewhat complicated, but you may be able to find some good examples out there.

Dan



Return to posts index

Tomas Bumbulevičius
Re: [Scripting] How to copy all keyframes from one property to another?
on May 16, 2020 at 1:48:29 pm

Hey Dan, just curious - what is the actual complexity in your opinion, that does not allow copying keyframes and pasting them directly with scripting? Why all the 'keyframes stuff' is required to deal with?

Adirai, what you could try to do - is select all keyframes, and trigger app.executeCommand with copy/paste value. But of course, this might work only in cases where GUI is applicable.

Keep in mind that by selecting these and triggerring the copying, then you need to deselect, make selection of other property active, etc.

Find out more:
Motion Graphics Design & After Effects Tutorials
On YT
On VH


Return to posts index


Scott McGee
Re: [Scripting] How to copy all keyframes from one property to another?
on May 6, 2020 at 7:59:35 am

http://www.seventy75five.com/public/misc/multicopy.jsx

It copies and pastes to the same layer. But if you tweak it. This should do the trick.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]