Automation Blocks - Script to get InOut Info of all clips in a sequence and set metadata
Copy link to clipboard
Copied
Dear folks,
I want to write a simple automation Blocks Script - but I'm new and am struggling with this simple task.
So basically I want to get the In and OutPoint from a clip in a sequence and write that info to the Metadata VideoIN / VideoOut Point. And this repeats for all clips in a sequence.
I got an basic idea, see screenshot and attachment (saved XML from automation blocks).
Chat GPT can help with logic, but not the execution.
Thank you for your support!
Cheers - Jakub
Mod note: Please mark Automation Blocks support request with the "SDK" label. I have done that for you. Cheers.
Copy link to clipboard
Copied
Hi Jakub,
your issue is most likely that the metadata fields for video in and out point require a string in timecode format, whereas the in and out points returned by Automation Blocks are floating numbers given the value in seconds. I changed the code to convert the time into timecode:
I also added some "write to console" blocks such that you can see the values in the console of Automation Blocks. This helps a lot during trouble shooting to understand what is going on.
Finally, I changed the loop to only loop over video clips and skip audio clips.
Copy link to clipboard
Copied
Dear @Mathias Moehl Danke Danke Danke für die Hilfe! Totally solved. Great tool, awesome support!
Do you have a donation account or something simliar for buying you a coffee / Bier?
Greeting from Berlin
Jakub
Copy link to clipboard
Copied
Gerne 🙂

