Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects expressions and scripts

  • expressions and scripts

    Posted by Marian Oprea on October 22, 2010 at 2:28 pm

    As long as I haven’t found an answer yet, I still have a question:

    Is it possible to run (open, launch) a scrips (*.jsx file) using an expression?

    If it is, how can this be done?

    Thanks a lot.

    Marian Oprea replied 15 years, 11 months ago 3 Members · 6 Replies
  • 6 Replies
  • Roland R. kahlenberg

    October 22, 2010 at 3:57 pm

    [Marian Oprea] “Is it possible to run (open, launch) a scrips (*.jsx file) using an expression?”

    I don’t think so. You can however run Expressions and presets via a *.jsx.

    HTH
    RoRK

    AE Training in South East Asia. AE templates for sale and rental. Click here for more

  • Marian Oprea

    October 22, 2010 at 5:24 pm

    Yes, I knew that, but I was just interested if it could be possible the other way around.

    Thanks anyway.

    AE’s Great!

  • Chris Wright

    October 22, 2010 at 5:58 pm

    the only way to do this is have a script run continuously in the background in a loop, waiting for an expression to trigger it to run another script.

    https://technicolorsoftware.hostzi.com/

  • Roland R. kahlenberg

    October 22, 2010 at 6:30 pm

    That’s interesting Chris. What would the syntax be to call up the JSX?

    Cheers
    RoRK

    AE Training in South East Asia. AE templates for sale and rental. Click here for more

  • Chris Wright

    October 22, 2010 at 6:53 pm

    ae’s DemoPalette.jsx runs external jsx from itself. it’s in the scripts folder and runs forever as infinite functions.

    var scriptFile = new File(this.scriptFileName);
    scriptFile.open();
    eval(scriptFile.read());
    scriptFile.close();

    expressions in scripts are like
    if (theLayer.opacity.expression == theExpr2) //can be text too
    do the dancing song.

    https://technicolorsoftware.hostzi.com/

  • Marian Oprea

    October 22, 2010 at 7:07 pm

    Thanks Chris, very interesting.
    I’ll take a look and see what’s all about.

    Thanks again!

    AE’s Great!

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