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.