Skip to main content
pctechtv
Inspiring
September 20, 2019
Answered

Premiere Scripting: More help creating an invisible panel

  • September 20, 2019
  • 1 reply
  • 1335 views

I was investigating using scripting to control (do things) programmatically from Premiere. The answer seems to be via an invisible panel and communicate via a web socket. I see one example online. However that example just gives code and no real explanations of how to use it, and there functions. I cannot even download the code because I am not using version control at the moment. Has anybody done one of these invisible panels and communicated via a web socket? Also could some show an understandable example? I have built scripts for Premiere via the Pro Panel. I understand how to use it to build scripts via the Pro Panel. Thanks

This topic has been closed for replies.
Correct answer Bruce Bullis

> Does the cook book cover any ways to send commands externally to Premiere?

 

No, but panels are web pages; a web socket connection should work. Your panel doesn't _have_ to be invisible to get external messages, but invisibility is one good way to make sure your panel is loaded, and can listen for messages.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
September 22, 2019

Only difference between regular panels and invisible panels is in the manifest. Check out the manifest.xml settings for the Invisible panel and apply them to your own panel to get up and running. (also the Cookbook goes over this). Pretty sure you just need this:

 

<Lifecycle>
<AutoVisible>false</AutoVisible>
<StartOn>
<!-- PS dispatches this event on startup -->
<Event>applicationActivate</Event>
<!-- PPro dispatches this event on startup -->
<Event>com.adobe.csxs.events.ApplicationActivate</Event>
</StartOn>
</Lifecycle>

 

Regarding GitHub/Version Control. You can download any GitHub repo with the download button on the main page, but you should really invest time in learning Git and Version Control. It'll save you hours and lots of frustration in the future.

pctechtv
pctechtvAuthor
Inspiring
September 22, 2019

Hi, thanks for the reply. The reason I am asking about the invisible panel is that it seems to the way to send command (via scripting) to Premiere externally. I want to control some of the scripting features from another application and use the data like IN and OUT point. The command line would be fine. However, this post makes it clear that it cannot work unless you are launching Premiere. Does the cook book cover any ways to send commands externally to Premiere? As for version control, I know how to use it, and use it. However I am in a remote location, and it is not available. Thanks

Justin Taylor-Hyper Brew
Community Expert
Community Expert
September 22, 2019
Gotcha, there's no documentation for external communication with Premiere but I have done it before. You can't call scripts directly like you can with AE, but you can create an invisible panel that communicates with an external app through WebSockets. If you're using Node.js, checkout Socket.io, it makes Socket communication pretty easy. Here's a tutorial series that really helped me out when I was trying to do this: https://www.youtube.com/watch?v=vQjiN8Qgs3c&t=5s