Automation Blocks - Copying all video clips from one sequence to another.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Oh, yes, you are right! I just checked by directly using Premiere Pro's API function to change this setting:
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.
Copy link to clipboard
Copied
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.

