Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects › Rename file when import

  • Rename file when import

    Posted by Vfx Bd on August 25, 2014 at 5:36 pm

    Here is a script which import a mp4 file from my “d” drive.

    {
    var imgDir = ("d:");
    var newAmt = 1;
    if (!app.project) { app.newProject(); }
    var myItemCollection = app.project.items;
    var myComp = app.project.activeItem;
    var myProperty;
    function processFolder(theFolder)
    {

    for (var j=4; j < 5; j++)
    {
    var importOpts = new ImportOptions( new File(theFolder + "aff"+".mp"+j) );
    var importImg = app.project.importFile (importOpts);
    var myImg = myComp.layers.add(importImg, );
    }
    }
    processFolder(imgDir);
    }

    it import a “aff.mp4” file from my directory. But i want to rename the “aff.mp4” file when it import. is it possible? Please help me…

    John Cuevas replied 12 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • John Cuevas

    August 26, 2014 at 1:48 pm

    You might want to post this in the Expressions Forum

    Johnny Cuevas, Editor
    Thinkck.com

    “I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
    —THOMAS EDISON on inventing the light bulb.

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