Skip to main content
Inspiring
September 17, 2024
Question

Automation Blocks - Copying Keyframes from a Submix Track to a Standard Track/Clip

  • September 17, 2024
  • 1 reply
  • 724 views

Hello @Mathias Moehl 

 

Question - is it possible to create a script in Automation Blocks that copies volume automation keyframes from a Submix track to a standard audio track/clip?

 

I usually like to come to you with a partial attempt, but I don't see any audio keyframing in any of the blocks.

This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
September 18, 2024

In Automation Blocks for Pr, unfortunately there is not really a way to loop over keyframes. You can get and set the value at a particular time (the latter creates a keyframe), but there is not really a way to detect where a keyframe is.
In Automation Blocks for Ae, you can loop over keyframes, but in Pr, I think the only option is to use an execute code block and use Pr's API function to get the keyframes.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Mathias Moehl
Community Expert
Community Expert
September 18, 2024

UPDATE:

I just added a little example to the community library showing how to copy keyframes from one clip to another one.

This example copies all opacity keyframes from the first clip in V1 of the active comp to the first clip in V2:

 

The example is in the community library at

Clips/Keyframes/Copy/copy keyframes.xml

 

and here is the link to the ChatGPT session which I used to generate the JavaScript code:
https://chatgpt.com/share/66ea8ee3-5914-8004-82b7-7bd743f0bbe5

 

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Inspiring
September 19, 2024

Brilliant! Thank you! Awesome script.
I'm wondering if it's possible to make it work with submix keyframes. It's tricky since submix is a track, and copy/pasting keyframes from a track vs. a clip isn't straight forward.