Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions save project to render queue item render path?

  • save project to render queue item render path?

    Posted by Peter O’connell on August 29, 2008 at 4:36 am

    Hi I have been trying to figure out how to automatically have a project save a copy of itself to the folder containing the rendered sequence of a comp. In the AE CS3 scripting guide I can’t find a property called output path in the render queue module. I was thinking that a workaround might be to query the log file produced by a render (which does contain the output path), but that seems like a major workaround. The reason I need this is because sometimes I get small notes on a shot from a couple weeks ago and the comp that rendered the shot has since changed so I can’t see a version of the shot exactly like the one the supervisor is making notes on.
    Any ideas would be appreciated
    Pete

    roguekeyframe.com

    Dan Ebberts
    replied 17 years, 8 months ago
    2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    August 29, 2008 at 4:45 pm

    Assuming that your project has previously been saved somewhere and there is an item in the render queue, this should work:

    var myProject = app.project;
    var myRQItem = myProject.renderQueue.item(1);
    var myRQFile = myRQItem.outputModule(1).file;
    var myFileName = myProject.file.name;
    myProject.save(File(myRQFile.path + “/” + escape(myFileName)));

    Dan

  • Peter O’connell

    August 29, 2008 at 6:07 pm

    Thanks Dan. Are you getting info about these attributes from the AE CS3 scripting guide or is there a more detailed reference available? I find the Scripting Guide quite cryptic.
    Thanks again
    Pete

  • Dan Ebberts

    August 29, 2008 at 6:15 pm

    Mostly from the scripting guide but the file stuff comes from the JavaScript Tools Guide, which is part of the Bridge documentation.

    Sometimes it’s tricky to find things in the scriipting guide because they might not be where you first think they should be. For example, when I’m looking for layer attributes I always forget that a lot of them are in the AVLayer section. I can usually track down whatever I’m looking for with the pdf Search function though.

    Dan

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