ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Free script for replacing multiple footage files

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gabriel Valkama
Free script for replacing multiple footage files
on Oct 2, 2014 at 8:12:16 am
Last Edited By Gabriel Valkama on Oct 2, 2014 at 8:15:41 am

Hello!

I made a simple script for easily changing multiple footage paths. I'm a 3D artist and found it a burden to replace all the vray render passes every time I rendered a new version. I'm sure it has other uses as well, like checking and setting which of your footage files are local and which ones are on a fileserver.

You can also copy and move footage from one file to another with this tool.

I'm not a professional scripter and would like some comments and crits. What would be the best place to publish something like this? For 3ds max there's scriptspot.com, is there something similiar for adobe scripts?

Use at your own risk. Download here.



Return to posts index

Roland R. Kahlenberg
Re: Free script for replacing multiple footage files
on Oct 4, 2014 at 12:14:41 am

Try aescripts.com and http://aenhancers.com/

Cheers
- Roland

TypeGEMs - the Definitive Type Gizmo for AE
http://broadcastgems.com/typegems/

Intensive mocha & AE Training in Singapore and Other Dangerous Locations
Adobe After Effects CC ACE/ACI
Imagineer Systems (mocha) Certified Instructor

http://www.broadcastgems.com/mographintensity_shapestext/


Return to posts index

Gabriel Valkama
Re: Free script for replacing multiple footage files
on Oct 6, 2014 at 11:12:47 am

Thank you for the suggestions!

I guess I did some very lazy googling on the subject. I'll check those out.


Return to posts index


Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 4, 2014 at 11:25:13 pm

Awesome. Looking forward to giving it a go.


Return to posts index

Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 5, 2014 at 12:36:56 am

Does it only work with image sequences?


Return to posts index

Gabriel Valkama
Re: Free script for replacing multiple footage files
on Oct 6, 2014 at 11:11:47 am

It should work with all footage items. Sequences, stills, audio, etc.


Return to posts index


Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 6, 2014 at 2:46:55 pm

I'll have to give it a go again. I couldn't get it to work with video files.


Return to posts index

Gabriel Valkama
Re: Free script for replacing multiple footage files
on Oct 6, 2014 at 5:40:04 pm

Good point, I didn't test this with video clips at all. I should have time to look at that tomorrow.


Return to posts index

Gabriel Valkama
Re: Free script for replacing multiple footage files
on Oct 7, 2014 at 6:59:14 am
Last Edited By Gabriel Valkama on Oct 7, 2014 at 7:10:16 am


I just gave it a go and it worked fine with .mp4 and .wmv files.

How did you test this?

If you used the 'Paste path' button, the footage must already exist in the new location. Otherwise you have to use the 'Move footage' or 'Copy footage' buttons. With those buttons the folder must already exist.


EDIT:
Took some time to bump into the problem myself, I fixed it and the new version (v07) can be found at the same place. Thank you for your feedback!


Return to posts index


Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 7, 2014 at 3:02:52 pm

Great. I'm looking forward to giving it a try. I'll give it a go later today and let you know what I discover. Thanks.

Kevin


Return to posts index

Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 8, 2014 at 2:39:53 am

Just tested the new version. Everything is working as expected. Thanks for the great tool. Should come in handy.

Any chance of the ability to replace image sequences with video files? Sometimes I convert my images sequences to video files in Adobe Media Encoder in order to consolidate a project. It can be time consuming to relink the images sequences to video files. I'm not sure if it's possible... Thanks again.


Return to posts index

Gabriel Valkama
Re: Free script for replacing multiple footage files
on Oct 8, 2014 at 6:52:45 am
Last Edited By Gabriel Valkama on Oct 8, 2014 at 7:03:12 am

Thanks for the suggestion!

The way AE imports and replaces sequences is awfully slow (at least with half float .exr). I have a dream to replace those operations with something better. I know it is possible, as I made an autocomper script for vray passes some years ago (haven't had the time to recode it for CS6). The script I made imported seguences a lot faster than the default import.

So, it would be possible to make a new way to replace. It would work like this:
- scripted fast import for new footage
- check where the old footage is used (in what comps)
- replace all found layers with the new footage
- delete old footage from project view

If I manage to do this, then what you are suggesting should work as a side product. This could take some time.

EDIT:
also I have to think an efficient way for the user to do what you asked. Maybe you'd...
- Put all the movie files on a single folder. Copy that folder path to the main textbox.
- Press "Replace with video" or something? Then the script would find matches by comparing the filenames of the selected items to all the files found in the folder, and replace as when a match is found.

Can I ask what kind of image sequences you use? I've never had the urge to recode seguences when using lzw packed .tif or any kind of .exr files. And I like to keep stuff lossless. What are the benefits you get from recoding to video files?


Return to posts index


Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 8, 2014 at 2:55:09 pm

I was thinking that another way it could work is to select all the image sequences in the project panel and run a script that adds all the selected sequences to the render queue. In the render queue the files have the attribute to render and replace the image sequence. Seems like it may require less scripting? I'm not sure though.

I am using tif sequences mostly. I find that if I need to share a project file with someone, several passes of tif sequences are rather large. To make the project smaller I convert them to a video file that I can compress a bit. It's not ideal, but it cuts down on the space substantially.

Thanks again.

Kevin


Return to posts index

Gabriel Valkama
Re: Free script for replacing multiple footage files
on Oct 9, 2014 at 7:17:27 am

It seems like you can't access the pickwhip of the postRenderAction.IMPORT_AND_REPLACE_USAGE. That way I could make a script that would link the replace operation straight to the sequences. It's a shame.

http://blogs.adobe.com/aftereffects/files/2012/06/After-Effects-CS6-Scripti... page 111.


Return to posts index

Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 9, 2014 at 3:00:13 pm

That's too bad. That could have been a great way to go about it... Thanks for checking into it.

Kevin


Return to posts index

Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 9, 2014 at 7:33:50 pm

I wonder if there is a way to work around it with the option to render a proxy file and replace? Just a thought.


Return to posts index

Gabriel Valkama
Re: Free script for replacing multiple footage files
on Oct 10, 2014 at 6:25:13 am

Can you be more specific?

Like...

- make a list of all comps with proxies and only one sequence inside of them
- replace all found sequences with the corresponding proxies

or would you need more automation than that?


Return to posts index

Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 13, 2014 at 10:16:11 pm

Gabriel,

I'm playing around with some of the features in AE to get more familiar with proxies. I don't use them, but it seems like there is a solution in there...possibly. Thanks.

Kevin


Return to posts index

Kevin Snyder
Re: Free script for replacing multiple footage files
on Oct 16, 2014 at 5:30:52 am

I have been experimenting a bit, but think your idea is straight forward and should work.

- make a list of all comps with proxies and only one sequence inside of them
- replace all found sequences with the corresponding proxies

If you happen to give it a go, I would be happy to test it out for you. Thanks.

Kevin


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]