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

1+4 throws evalScript error...??

New Here ,
Oct 25, 2025 Oct 25, 2025

Hi all,

 

I've been using a premiere pro extension I've made through a local python server (server.py). The py file also has all the extend script code (using pymiere package, eval_script).

 

I decided to push the server to heroku, and move the eval_script to main.js (which will remain local). But I can't get csInterface.evalScript to work. It keeps through EvalScript error. So I tried a basic script. Literally, 1+4. I tried with and without the return statement.

var csInterface = new CSInterface();
csInterface.evalScript("return 1 + 4;", function(result) {
                            resultElement.textContent = 'Result: ' + result;  // I display the result in html inside premiere
                        });



And

 
csInterface.evalScript("1 + 4;", function(result) {
                            resultElement.textContent = 'Result: ' + result; //again display in html inside ppro
                        });


am I using this wrong..? python's eval_script worked just fine.

Bug Needs More Info
TOPICS
FAQ
162
Translate
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 Pinned Reply

Adobe Employee , Oct 27, 2025 Oct 27, 2025

HI @blackjade-
Was it a script that was working and then stopped when you moved stuff around, or has it never worked?  What does the script do?

Status Needs More Info
Translate
3 Comments
New Here ,
Oct 25, 2025 Oct 25, 2025

 It keeps through throwing EvalScript error.

Also, I've tried passing other things too. Here's my actual code:

 

const data = JSON.parse(response);

// we a string of the extendscript from the python server, tried both with and without escaping slashes for js
const token = data.extendscript || data.extendScript;

var csInterface = new CSInterface();

// Attempt to run extendscript
csInterface.evalScript(script, function(result) {
    resultElement.textContent = 'Result: ' + result;
}

 

Translate
Report
Adobe Employee ,
Oct 27, 2025 Oct 27, 2025

HI @blackjade-
Was it a script that was working and then stopped when you moved stuff around, or has it never worked?  What does the script do?

Status Needs More Info
Translate
Report
Adobe Employee ,
Oct 27, 2025 Oct 27, 2025
LATEST

Can you provide steps which reliably reproduce the problem, without involving any Python?

A solid repro case, using CEP HTML Test Panel, would be ideal...

Translate
Report