Skip to main content
Inspiring
April 6, 2019
Answered

CEP panel sending from JSX to HTML

  • April 6, 2019
  • 1 reply
  • 1642 views

Hi

I am making a CEP panel. The panel is part of a multi-panel setup. Multiple panels talk to each other via extendscript.

My problem is that panel A is giving panel B a command. Panel B receives this command and should change the UI. So I need panel B to tell the CEP HTML UI what to do. This will not be triggered by a user action in panel B.

My other communication goes through CSInterface.evalScript with a callback. But I can't use that in this case.

So in other words I need to send a command from JSX to HTML without the user first clicking any UI buttons or anything.

Is there a way to do this?

Thanks,

Jakob

EDIT: This seems to be what I need, but I don't know how to make that work for AE. I get the error "File or folder does not exist."

https://www.davidebarranca.com/2014/07/html-panels-tips-11-externalobject-cep-events/

This topic has been closed for replies.
Correct answer Jakob Wagner 2048

Ah. It works. Like David writes but without the two back slashes. He writes:

try {
   var xLib = new ExternalObject("lib:\\PlugPlugExternalObject");
} catch (e) {
   alert(e);
}

it should be:

try {
   var xLib = new ExternalObject("lib:PlugPlugExternalObject");
} catch (e) {
   alert(e);
}

Just like the manual says. Sometimes it helps to sleep.

CEP-Resources/CEP 8.0 HTML Extension Cookbook.md at master · Adobe-CEP/CEP-Resources · GitHub

1 reply

Jakob Wagner 2048AuthorCorrect answer
Inspiring
April 7, 2019

Ah. It works. Like David writes but without the two back slashes. He writes:

try {
   var xLib = new ExternalObject("lib:\\PlugPlugExternalObject");
} catch (e) {
   alert(e);
}

it should be:

try {
   var xLib = new ExternalObject("lib:PlugPlugExternalObject");
} catch (e) {
   alert(e);
}

Just like the manual says. Sometimes it helps to sleep.

CEP-Resources/CEP 8.0 HTML Extension Cookbook.md at master · Adobe-CEP/CEP-Resources · GitHub

schroef
Inspiring
December 9, 2024

Nice find! Curious, why they have such an error in their code. PS does not seem to fix the issue. I dont get any thing in return when adjusting the code to this