Forums › Adobe After Effects Expressions › [Scripting] How to copy all keyframes from one property to another?
[Scripting] How to copy all keyframes from one property to another?
Tomas Bumbulevičius updated 9 months, 2 weeks ago 4 Members · 4 Posts
Adirai Maji
May 4, 2020 at 11:16 pmI 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
Dan Ebberts
May 4, 2020 at 11:41 pmAs 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
Scott McGee
May 6, 2020 at 7:59 amhttps://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.
Tomas Bumbulevičius
May 16, 2020 at 1:48 pmHey 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
Log in to reply.