Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

I've got a composition in After Effects CS 6 on Windows that contains several .ai files. One of them has over 30 layers, which I imported and animated in AE. Unfortunately, I gave the .ai file the not so clever name foo.ai because it started out as a test but worked, and I'd like to go ahead with it. When I rename the file to something more sensible, like Scene 1 - Spaceship.ai, AE complains about a missing footage file. Now it wants me to give it the new path, which I do. I have to select the layer from the .ai as well. And it looks like it wants me to do it for every layer from the same file.

I've already tried making a copy of the AE project file, opening it with a text editor and replacing all occurrences of foo.ai with Scene 1 - Spaceship.ai. After that, AE told me it tried to read after the end of file. Looks like there's a file length in there. Damn.

So how can I do this without having to change the source file and resellecting the layer for each individual layer in AE?

share|improve this question
add comment

migrated from graphicdesign.stackexchange.com Jun 1 '13 at 22:27

This question came from our site for professional graphic designers and non-designers trying to do their own graphic design.

1 Answer

up vote 3 down vote accepted

Save the project in XML file format, do as you already did, open it in a text editor, find-replace the name. Open the modified file in AE and re-save it in its normal binary format (aep).

Size shouldn't be an issue since renaming a file doesn't change it size. It seems like you have edited the aep file? Hope this helps!

More on the topic here:
http://help.adobe.com/en_US/aftereffects/cs/using/WS3878526689cb91655866c1103906c6dea-7fa0a.html

share|improve this answer
    
Yes, I edited the aep binary file with a hex editor. That's what I was referring to with size. I think there's a reference to the position of the EOF in it and that was incorrect because the length of the filename strings changed. I will give this a try, thanks a lot! –  simbabque Jun 2 '13 at 16:25
    
Editing a binary file rarely works as there are information there that are not viewable, there can be checksums or pointers to next chunk of data etc. Unless you know the binary specification in detail you need to edit in a text-only format.The XML format is designed to be flexible when it comes to formatting and data itself (you can change the length of a line without breaking the data) and also to be partly human readable. –  Epistemex Jun 4 '13 at 6:59
    
I know, but it was worth a shot. I just didn't know the XML one existed. Worked like a charm. :) –  simbabque Jun 4 '13 at 7:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.