Copy link to clipboard
Copied
Hello @Mathias Moehl !
¿Is there a way to duplicate project items with code or maybe some clever use of blocks?
In my case, I have footage as .mxf with differente languages distribuited along the channels and I want to add them separetly along some audioTracks. I'm using custom metadata to write which languages each file contains and using a forloop with the list lenght and content to add each language to the correct track, the problem comes when I tried to modify the channelmapping based on the language, as when you change the chanelmapping of an item, all uses of that file changes to the new Mapping, for explample, in a file with: ENG,POL,HUN,ROM,RUS,DUT, its adding correctly each language to their respective tracks, but change in the ChannelMapping, at the end of the day all have the DUT audio as it was the last to be iteraded.
This is the function I'm using the separate each language, the If statement checks if the list contains the language and set the variable IDIOMA to = 1, 2, 3.... depending on the language.
That's why I thougt maybe duplicating the .mxf and changin the channelmapping for each file would work better.
I'm attachin the full code aswell.
Let me know if you have any idea!
Thanks
Great to see that you try to automate workflows in Premiere Pr using Automation Blocks! Unfortnately, I am not aware of any method to duplicate a project item with Premiere Pro's scripting engine (and hence also not with Automation Blocks).
Possible workarounds:
1. Get the media path of the project item and then import that file again.
2. create a subclip and then use this subclip instead of the original item.
Copy link to clipboard
Copied
Great to see that you try to automate workflows in Premiere Pr using Automation Blocks! Unfortnately, I am not aware of any method to duplicate a project item with Premiere Pro's scripting engine (and hence also not with Automation Blocks).
Possible workarounds:
1. Get the media path of the project item and then import that file again.
2. create a subclip and then use this subclip instead of the original item.
Copy link to clipboard
Copied
Oh never thought about getting the media file path and re-importing it, thats a clever use of blocks in my book!
Will try both! Thank you!
PS: Could we have the option to save workspaces within the automationblock pannel?, pretty please :')
Copy link to clipboard
Copied
Feature request noted 🙂 That's on my feature request list already, but I cannot promise if/when it will happen.