Automation Blocks - Duplicate Project Items
- January 29, 2025
- 1 reply
- 630 views
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
