FORUMS: list search recent posts

Rename file when import

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Vfx Bd
Rename file when import
on Aug 25, 2014 at 5:36:19 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, );

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...

Return to posts index

John Cuevas
Re: Rename file when import
on Aug 26, 2014 at 1:48:39 pm

You might want to post this in the Expressions Forum

Johnny Cuevas, Editor

"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.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved