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

CEP panel sending from JSX to HTML

Engaged ,
Apr 06, 2019 Apr 06, 2019

Copy link to clipboard

Copied

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/

TOPICS
Scripting

Views

1.3K

Translate

Translate

Report

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

correct answers 1 Correct answer

Engaged , Apr 07, 2019 Apr 07, 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

Votes

Translate

Translate
Engaged ,
Apr 07, 2019 Apr 07, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
Advocate ,
Dec 09, 2024 Dec 09, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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