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

Automation Blocks - Play Down Timeline

Participant ,
May 08, 2025 May 08, 2025

Hi @Mathias Moehl 

 

Is there a way in Automation Blocks to 'press play' on a timeline and play down the active sequence? Maybe some code in the extendscript block? 

TOPICS
SDK
704
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 ,
May 09, 2025 May 09, 2025

Yes, I haven't tested this, but you should be able to execute this:

app.sourceMonitor.play(1)

inside an execute code block.

 

See
https://ppro-scripting.docsforadobe.dev/general/sourcemonitor/?h=play#sourcemonitorplay

 

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
Participant ,
May 09, 2025 May 09, 2025

Awesome. I never know what to put in the var field and the two parts that follow it in the top of that block. Can you lend a hand? That block is sort of the last frontier in my Automation Blocks upskilling journey.

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 ,
May 10, 2025 May 10, 2025

I have some bad news and some good news for you.

Bad:
app.sourceMonitior.play() only works for playing the source monitor, but not for playing the active sequence. And there is nothing like that for the sequence in the scripting API.


Good:
I recorded a tutorial for you explaining how to use the Execute Code block and how to ask ChatGPT to write some code and then combine it with Automation Blocks:



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 Expert ,
May 10, 2025 May 10, 2025

I also added this to the docs now:

https://docs.mamoworld.com/automation-blocks/tutorials-pr/executeCodeAndChatGPT

 

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
Participant ,
May 10, 2025 May 10, 2025

Awesome! I can't wait to watch this! Thank you for being generous with your time. This will open up another world for me.

Loading a clip into the source monitor and playing it would achieve the same thing I'm trying to do. Is it possible to automate loading a specific clip and then play it?

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
Participant ,
May 10, 2025 May 10, 2025

Well. I just started watching the video and it looks like I'll have my answer. You're the best!

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
Participant ,
Oct 09, 2025 Oct 09, 2025

Hey @Mathias Moehl . Hope you're well.

This play video script is awesome. One hitch is the video always plays from its last point. So once the video has been played all the way through, the next time you run the script, it just loads the video in the source monitor but the playhead is at the very end.

I'm trying to get chatGPT to help me write a code that sets the playhead at the first frame before playing the video, but I'm having no luck.

Can you be of assistance?
PS - we just bought three licenses for Automation Blocks - After Effects. Excited to dive in, especially the spreadsheet stuff!

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 ,
Oct 10, 2025 Oct 10, 2025
LATEST

I haven' tested this, but I would try to set the inPoint of the clip to see if this changes the playhead time, too. If this doesn't do the trick, there is probably no way to do it.
From the API, it looks like you can get the current time with app.SourceMonitor.getPosition() , but not set it.

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 Expert ,
May 10, 2025 May 10, 2025

Thanks @Mathias Moehl , cool tutorial! 🙂

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