Skip to main content
jakubstejskal
Participant
May 22, 2024
Question

Automation Blocks - Script to get InOut Info of all clips in a sequence and set metadata

  • May 22, 2024
  • 1 reply
  • 849 views

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.

 

 



This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
May 23, 2024

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.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
jakubstejskal
Participant
May 27, 2024

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

Mathias Moehl
Community Expert
Community Expert
May 27, 2024

Gerne 🙂

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects