Copy link to clipboard
Copied
I am trying to add extensions to premiere pro.
However, I run the sample code ppropanel index.html, and I get the following error. (in CSInterface.js)
Uncaught TypeError: Cannot read property 'getHostEnvironment' of undefined at CSInterface.js:480
This happens when I run it directly in the browser, or when I create and deploy the zxp file.
What should I do? I need help.
[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]
[Moved from generic Suite forum to SDK forum... Mod]
This happens when I run it directly in the browser, or when I create and deploy the zxp file.
The __adobe_cep__ object is exclusive to Adobe's panels and is attached to window in a CEP environment. This means that you need to run the index.html file in Premiere (or After Effects). Premiere uses what is a Chromium Embedded Framework (CEF) - which basically means that Premiere's panels are custom "browsers". This custom browser has the __adobe_cep__ object attached to "window" and many other freak
...Copy link to clipboard
Copied
This happens when I run it directly in the browser, or when I create and deploy the zxp file.
The __adobe_cep__ object is exclusive to Adobe's panels and is attached to window in a CEP environment. This means that you need to run the index.html file in Premiere (or After Effects). Premiere uses what is a Chromium Embedded Framework (CEF) - which basically means that Premiere's panels are custom "browsers". This custom browser has the __adobe_cep__ object attached to "window" and many other freakin awesome features that standard browsers don´t have - like node.js. So if you open the index.html in a standard browser, there won´t be an __adobe_cep__ object. If your code or panel should run outside of Premiere too, I'd recommend to check for the existence of __adobe_cep__.
I hope this helps.
Thomas