Skip to main content
Participant
March 6, 2024
Answered

Automation Blocks: Trigger script remotely with http / streamdeck ?

  • March 6, 2024
  • 2 replies
  • 1861 views

Hi there! I'm just starting to fall in love with Automation Blocks.

 

My use case scenario is:

Make.com-scenario to watch for google sheet changes -> convert to text file in Gdrive -> Push a button on the streamdeck  that sends a http get (or a keyboard shortcut, or something) to trigger script in AutomationBlocks -> reads the text file -> updates mogrts from files.

 

I'm wondering if there's a possibility of triggering scripts remotely, using local http, or some other way? I'm aware of CEP Events. Would I have to learn that, or is there another way of for example simply triggering a script by a local http GET?

 

Thanks!

 

Correct answer Mathias Moehl

Update: Today we published Automation Blocks 1.1.000, which has remote execution via http requests built-in.

See here for details:

https://docs.mamoworld.com/automation-blocks/remoteExecution

 

2 replies

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
April 4, 2024

Update: Today we published Automation Blocks 1.1.000, which has remote execution via http requests built-in.

See here for details:

https://docs.mamoworld.com/automation-blocks/remoteExecution

 

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

Can i pass some text thrue http request to input block, so i can generate requests from webpage with different texts, and get diferent results on timline?

Mathias Moehl
Community Expert
Community Expert
April 27, 2025

That's a pretty cool idea but currently this is not supported. Your best option is probably to write some automation outside of Premiere Pro, which writes the desired text to a text or spreadsheet file and then triggers an Automation Blocks script. Then the Automation Blocks script can read that file.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Mathias Moehl
Community Expert
Community Expert
March 6, 2024

Currently, CEP events are the only way to remote-execute Automation Blocks scripts. For details see here:

https://docs.mamoworld.com/automation-blocks/executeScriptsCEPEvents

 

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
nicwilluAuthor
Participant
March 6, 2024

Thanks for the quick reply. I figured!

I came across Premiere Remote which allows one to trigger premiere scripts via http. However I'm unsure how to exactly run the function for automation blocks to run a script, using it.

 

They have this as an example script:

function lockVideoLayer(layerNumber) {
  app.enableQE();
  var activeSequence = qe.project.getActiveSequence();
  var someTrack = activeSequence.getVideoTrackAt(layerNumber);
  someTrack.setLock(true);
}

 

.. how would your example script translate into this?

 

Perhaps you can be of aid?

Mathias Moehl
Community Expert
Community Expert
March 7, 2024

Wow, this looks very cool!

I just read the documentation and it looks like you could simply replace the function "lockVideoLayer" by a function executing something like the sample code for Kbar/QuickMenu.

 

Something like

 

function runAutomationBlocksScript(filePath) {
  var xLib;
  try {
    xLib = new ExternalObject("lib:PlugPlugExternalObject");
  } catch (e) {
    alert("Missing ExternalObject: " + e);
  }

  if (xLib) {
    var eventObj = new CSXSEvent();
    eventObj.type = "com.aescripts.AutomationBlocksAe.runScriptFile";
    eventObj.data = JSON.stringify({
      filePath: filePath,
    });
    eventObj.dispatch();
  }
}

I will schedule some time to do some experiments with this.

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