Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Automation Blocks - Copying all video clips from one sequence to another.

Participant ,
Jan 03, 2025 Jan 03, 2025

Hello @Mathias Moehl !

 

Over the last few months, you've been helping me create a suite of tools that duplicates a Primary Sequence and makes the necessary changes to that duplicate. This has allowed me to automate 11 deliverables!

Now, I've hit a wall and don't yet know how to get over it.

 

Some of my deliverable sequences have different audio settings than the Primary Sequence (multichannel instead of stereo).  Duplicating the stereo, Primary Sequence doesn't work when the deliverable sequence needs to be multichannel.

 

So I'm thinking I have two options...

-Add a function that changes the Sequence Audio Settings from Stereo to Multichannel (which I feel is impossible in Premiere without starting a new sequence).

-Copy all clips from the Stereo, Primary Sequence into a new or existing Multichannel Sequence.

So I guess that's my question - Do you have any resources to get me started on writing a script that copies all video clips from one sequence to another? It's proving difficult for me to figure out.

Hope that all makes sense!
Sam

TOPICS
SDK
267
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 04, 2025 Jan 04, 2025

Hi Sam,

copy sequence content

yes, this is suprisingly difficult to achieve. As far as I know, there is no API function to copy an entire clip including all the effects applied to it etc.
The best you can do is loop over the clips of one sequence and inserting the same project item into the new sequence and then set its in and out point. But if the clip has any effects, transitions or other modifications on it, those will not be on duplicate, unfortunately.

Sequence Audio Settings
Have you tried to set the audio channel type?


Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 04, 2025 Jan 04, 2025

copy sequence content
Ah yes! Inserting clips using the in-out point and start-end time at sequence is something I've been experimenting with. I'm still trying to figure out how to get them inserted onto the proper tracks.

Sequence Audio Settings
I looked at that, as well. And I could only find Audio Channel type in the 'get property' block, not the 'set property' block. Am I missing something?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 05, 2025 Jan 05, 2025

Oh, yes, you are right! I just checked by directly using Premiere Pro's API function to change this setting:

 

Screenshot 2025-01-05 at 15.30.48.pngexpand image

 

Trying to set settings where the audioChannelType has been changed causes an error. That must also have been the reason why I removed it from Automation Blocks "set property" block. So unfortunately, it is read only.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 05, 2025 Jan 05, 2025
LATEST
quote

I'm still trying to figure out how to get them inserted onto the proper tracks.


By Citizen_Sam


Maybe you can get the trackName which should be a text like "V1" or "A3" and then Get a A Substring of that such that only "1" or "3" is left.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines