Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Automation Blocks : change marker duration from 5 seconds to length of my clip

Community Beginner ,
Apr 09, 2025 Apr 09, 2025

 

I have a script that inputs a project item, and a marker at the playhead, it gives me a default time of 5 seconds, how may I change the script to that the duration would be the same duration of the clip selected, instead of the default times.  Thanks for your help

MARKER AND PROJECT ITEM.png

TOPICS
SDK
223
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 09, 2025 Apr 09, 2025

I added a function which retrieves the clip at the current time from a particular track. Then for the duration of the marker, we can use the duration of that clip.

 

Screenshot 2025-04-10 at 08.18.40.png

Translate
Community Expert ,
Apr 09, 2025 Apr 09, 2025

I added a function which retrieves the clip at the current time from a particular track. Then for the duration of the marker, we can use the duration of that clip.

 

Screenshot 2025-04-10 at 08.18.40.png

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 10, 2025 Apr 10, 2025

Thank you for your quick response, we are closer.  Is there a way to change the duration of the "add project item(s)"  to be the duration of the clip selected in video track 1.    It currently brings it in at the default 5 seconds, which makes the marker 5 seconds as well.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 11, 2025 Apr 11, 2025

Try the two changes marked in red.

Screenshot 2025-04-10 at 08.18.40.png

This should retrieve the duration of the first selected clip in V1 (and stop with an error if there is no clip selected in V1).

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 15, 2025 Apr 15, 2025

I appreciate the changes, the marker comes in at the length of the clip, but the .png file still comes in at 5 seconds, not the length of the clip in v1.  

 

Thank you for your continued help

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 16, 2025 Apr 16, 2025
LATEST

Try the attached script.Screenshot 2025-04-16 at 21.44.21.png

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines