Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Same script behaving differently on different computers (all Windows 7 64bit and with AE CC2014)

  • Same script behaving differently on different computers (all Windows 7 64bit and with AE CC2014)

    Posted by Nicolas Plaire on June 7, 2015 at 11:47 pm

    I posted this on the Adobe forums, but while I’m aware that a lot of people are both in here and over there, I’m trying to increase my chances to get an answer on that weird problem I’m having

    I wrote a script for AE CC2014 for a TV station.
    The purpose of the script is to create titles and resize graphics elements based on the text the user entered and then add the comp to the render queue.
    But for some reason on most computers (Windows 7 64bit), the save dialog always opens by default on the After Effects scripts folder. Except on one computer where it does what was intended to do, the save dialog interface opens on the last folder the user saved in.
    I don’t understand why the SAME script and the SAME project are behaving differently on different computers (all with Windows 7).

    If anyone has an idea…

    Thanks

    Nicolas Plaire replied 10 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 8, 2015 at 12:35 am

    Is your script doing an app.project.save()?

    Dan

  • Nicolas Plaire

    June 8, 2015 at 1:09 am

    It’s not about saving the project, it’s about saving a file to the render queue… Here is an excerpt of the code I use…

    I’m copying a bit more of the script we need, as far I can tell, only the first 2 lines are relevant

    var dir = new Folder();
    var newLocation = dir.saveDlg("Select a render output folder..." );

    if (newLocation != null)
    {
    if (myShow1_1.property("sourceText").value != "")
    {
    HeightWidth(myComp1);
    app.project.renderQueue.items.add(myComp1);
    var renderIndex = app.project.renderQueue.numItems; //count the items
    var qItem = app.project.renderQueue.item(renderIndex);
    qItem.outputModules[1].applyTemplate("QuicktimeAnimationAlphaHD");
    var curOM = qItem.outputModules[1];
    curOM.file = new File(newLocation.path + "/BL_" + String(myShow1_1.property("sourceText").value)+ "_" + String(myShow1_2.property("sourceText").value) + "_" + String(myTime1_1.property("sourceText").value) + ".mov"); //rename file
    }

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