Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesTrainingCreative Cloud DebateFAQ

Re: Replace Footage Script

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Davis LindsayRe: Replace Footage Script
by on Apr 26, 2012 at 7:23:11 pm

Hey Dan,

Thanks for the help today.
I hacked away at it and I came up with this jumble of code :P

Is there a way to compress my two for loops?
Also, what method would be used to modify my format options when I add to render queue?

var proj = app.project;
var comp = proj.item(2);
var movFolder = app.project.item(3)
var movs = app.project.item(3).numItems;

for (i = 1; i <= movs; i++) {
var newSource = movFolder.item(i);
comp.duplicate()
proj.item(3).layer(3).replaceSource(newSource, true);
proj.item(3).layer(3).name = newSource.name;

var d = newSource.name.split("_");
var e = d[2].split(".");
var f = d[0]+"_"+d[1]+"_"+e[0];

proj.item(3).name = f;
alert(movFolder.item(i), "number");
}
for (i = 1; i<= movs; i++) {
app.project.renderQueue.items.add(proj.item(1).item(i))
}


Prepare for today and you'll survive, prepare for tomorrow and you will thrive.


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]