Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Unable to run aerender command over ssh using system.callSystem script

  • Unable to run aerender command over ssh using system.callSystem script

    Posted by Mark Paterson on November 13, 2019 at 10:27 pm

    I’ve wrote a script that sends my current active project to aerender directly from a Script UI button. It works fine on my local machine like this…

    myPanel.grp.group8.getPath.onClick = function() {

    if(app.project.file !== null){
    var path = app.project.file.fsName;
    $.writeln(path);
    }

    var renderCommand = "/Applications/Adobe\\ After\\ Effects\\ 2020/aerender -project " + path;
    system.callSystem(renderCommand);

    }

    However I would like the render to take place on a different machine which has access to the same files. The following Terminal command (from my machine) works and the image sequence gets rendered ok…

    ssh server@192.168.50.4 /Applications/Adobe\\ After\\ Effects\\ 2020/aerender -project /Volumes/Work/Jobs/test.aep

    The problem is, if I try to add ssh into the AE script like this, it does not work…

    myPanel.grp.group8.getPath.onClick = function() {

    if(app.project.file !== null){
    var path = app.project.file.fsName;
    $.writeln(path);
    }

    var renderCommand = "ssh server@192.168.50.4 /Applications/Adobe\\ After\\ Effects\\ 2020/aerender -project " + path;
    system.callSystem(renderCommand);

    }

    What am I doing wrong? What is the correct syntax to do this?

    Mark Paterson replied 6 years, 8 months ago 1 Member · 1 Reply
  • 1 Reply
  • Mark Paterson

    November 22, 2019 at 8:43 pm

    The following command works. Turns out I needed to backslash the quotes in a couple of places…

    var renderCommand = "ssh server@192.168.50.4 \"/Applications/Adobe\\ After\\ Effects\\ 2020/aerender -project \"" + path;
    system.callSystem(renderCommand);

    However, the issue now is that AE pinwheels until the aerender is complete on the other machine haha. The same happens when I remove ssh from the command and aerender locally. I guess I need to find a way to let it run in the background or just send the command then return focus to AE?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy