Home > AEE, News > From Blender to After Effects with one click!

From Blender to After Effects with one click!

For years the integration of 3D in the post-processing pipeline has been dominated by commercials applications. Today there is an alternative that I think is worth your attention. I just released the After Effects Exporter for Blender. This program integrates in the File/Export menu of Blender and it allows you to export an entire animation from Blender to After Effects. You can export the camera, lights, 3D meshes, planes, which will create corresponding After Effects 3D solids, and footage. The Exporter even supports multiple passes.

I prepared a 20-minute video tutorial on how to use it. You can find it here at  Creative COW. Next to the tutorial there is a link to download the projects files. That link points to a zip archive with all that you need to get started. In the archive you can find the exporter itself, a Blender Python program, a handy user’s manual and the Blender file showcased in the tutorial.

The exporter, nicknamed AEE, is released as Open Source Software and I hope to have it included in the final release of Blender 2.5. While other solutions have been tried before, I believe this is the first time that Blender has such complete support for After Effects. This exporter should streamline your pipeline considerably and I’ll be very interested in hearing about your experience in using it.

Have fun!

Categories: AEE, News Tags: , , ,
  1. February 2nd, 2010 at 14:44 | #1

    I get an error with CS4.

    it happens with running the jsx in AE.

    I get

    After effects error: Unable to call “replaceWithSequence” because of par…h is notvalid. Path: C:\User\Josh\Desktop\testing blender exporter\mpf

    Then it highlights this line. Line 29:
    combinedPH.replaceWithSequence(new File(“C:\tmp\renders\testing_001.png”),true);

  2. Pret-A-3D
    February 2nd, 2010 at 14:51 | #2

    Hi Josh. I believe that you need to save the Blender file before you run the exporter. Otherwise AEE doesn’t know what name to give to your comp.

  3. February 2nd, 2010 at 14:56 | #3

    I dont get this error when using your example so this leads me to think that I’m not rendering my blender file correctly before I try to import it in after effects.

  4. February 2nd, 2010 at 15:16 | #4

    How do I get the full error report with the javascrip editor when it pops up?

    I’m still getting an error. I’m sure I could figure it out if I knew what the error is. I see a truncated error at the bottom of the page which I posted above.

  5. Pret-A-3D
    February 2nd, 2010 at 15:21 | #5

    I don’t think that you need to render anything but you do need to save the .blend file before you invoke the AEE. After you create your scene, press Ctr-W, give it a name and then run AEE.
    For the JavaScript debugger in AE, you need to go to the AE Prerences and in the General page select “Enable Javascript Debugger”

  6. February 2nd, 2010 at 15:57 | #6

    Here is the steps that I have done to get this error.

    1: open blender and select all objects and add to the end of it’s name by pressing n and add “.MGX”

    2: save file.

    3: set filepath to //renders/test_###.png

    4: set file out put to PNG.

    5: animate

    6: save file again.

    7 run exporter and save as default name.

    8: open AE and run file=>scripts=>run script file. and point to jsx file.

    9:Javascript debugger opens and points to line 29:
    “combinedPH.replaceWithSequence(new File(“C:\Users\Josh\Desktop\temp\renders\testing_001.png”),true);”

    Java debugger states at the bottom
    “After Effects error: Unable to call”replaceWithSequence” because of parameter 1 path is not valid. Path: C:\Users\Josh\Desktop\temp\UsersJoshDesktopemp

    Now since I cant read the whole error at the bottom of the debugger I’m not sure, but it would look as if it’s tying to look in a faulty path.

  7. February 2nd, 2010 at 16:01 | #7

    FYI:
    I’m on windows 7 64 bit. I run CS4 and Blender 2.49b
    here is the files that I’m using. http://gfxcomplex.com/temp.zip

  8. Pret-A-3D
    February 2nd, 2010 at 16:08 | #8

    It took me a bit to get it since I don’t use Windows. It’s the damn backslash in the file path. The inventor of DOS should be severely punished for choosing that character as a file separator. The Backslash is used in C/C++/JavaScript/Perl and pretty much every language as an escape character. For example, “\n” is the code for “newline.”
    Let me see what I can do to fix that issue.

  9. Pret-A-3D
    February 2nd, 2010 at 16:09 | #9

    BTW, in the meantime you can edit the .jsx file and double all the backslashes in the file path. For example “C:\\Users\\Josh\\…” That will make the script runnable. It should take me 1/2 hour to fix the program.

  10. February 2nd, 2010 at 16:13 | #10

    Nice, very good. That did the trick.

  11. Pret-A-3D
    February 2nd, 2010 at 16:16 | #11

    Josh, can you send me the .jsx file generated by the exporter? My email is phciccone at gmail dot com
    thanks.

  12. Pret-A-3D
    February 2nd, 2010 at 16:19 | #12

    Josh, I have a new version of the exporter, can you give it a try? It’s at
    http://dl.dropbox.com/u/3701566/export_ae.py

  13. February 2nd, 2010 at 17:19 | #13

    there is a problem downloading the new file. not sure why but the new export_ae.py has no bytes after it’s been downloaded. When opened in note pad there is no data.

  14. Pret-A-3D
    February 2nd, 2010 at 17:23 | #14

    Transfer didn’t work. It’s fixed now but I mailed it to you as well.

  15. February 2nd, 2010 at 18:06 | #15

    if this works as well as it sounds, you may have completely changed the after effects world. Thank you!!

    * runs home to try this *

  16. Pret-A-3D
    February 2nd, 2010 at 18:12 | #16

    Hi gautch. I don’t know about “completely changing” the AE world :) , but the program works as described. If you are on Windows you will need the patch described in the comments but I’m in the process of updating the files on Creative COW. I’ll be curious to know how it works for you.

  17. Ryan
    February 4th, 2010 at 10:53 | #17

    Hi, first off thank you for this it looks great. I am having a problem running the script tho on the Blender side of things. I am using 2.5b on a mac PPC OSX 10.4.11 and am getting the following error:

    Python script error: please check console

    In the console there is the following:

    Traceback (most recent call last):
    File “/Applications/blender-2.49.2-darwin-7.9.0-powerpc-py2.3/Blender.app/Contents/MacOS/.blender/scripts/export_ae.py”, line 491, in main
    animationData = getBlenderData()
    File “/Applications/blender-2.49.2-darwin-7.9.0-powerpc-py2.3/Blender.app/Contents/MacOS/.blender/scripts/export_ae.py”, line 136, in getBlenderData
    objs = findExportables(scn)
    File “/Applications/blender-2.49.2-darwin-7.9.0-powerpc-py2.3/Blender.app/Contents/MacOS/.blender/scripts/export_ae.py”, line 100, in findExportables
    objList = [obj for obj in scene.objects if obj.name.endswith(MGX_TAGS)]
    TypeError: expected a character buffer object

    Do you have any idea what could be going wrong?
    Thank you

  18. Pret-A-3D
    February 4th, 2010 at 10:57 | #18

    Hi Ryan.
    You’re very welcome.
    The AEE does not work yet with Blender 2.5, you need to use 2.49. Most Blender scripts don’t work in 2.5 because the API has been changed dramatically and it’s still, AFAIK, incomplete. I will port AEE to 2.5 once 2.5 gets at the same level of 2.49 and the Python API is stable enough. I saw a couple of days ago that Tpn Rosendaal has asked for a “feature freeze” of 2.5 and that should help in that direction.

    Best.

  19. February 4th, 2010 at 13:01 | #19

    @Pret-A-3D

    I apologize, I am using 2.49b. I must have just hit the wrong key.. But what I said above is what is happening when I run the script.

    Thanks

  20. Pret-A-3D
    February 4th, 2010 at 13:12 | #20

    @Ryan, seems like there is an issue with the name of one of your objects. Would it be possible for you to send me your .blend file? My email is phciccone at gmail dot com.


    Paolo

  21. David
    February 15th, 2010 at 02:05 | #21

    Hi Paolo, Is your program running in Windows Vista?
    Thanks David!

  22. Pret-A-3D
    February 15th, 2010 at 07:05 | #22

    The AEE is platform-neutral. If you have a running copy of Blender for Vista then it will run. It depends on Pythin 2.5 so your only concern is to have a Blender 2.49 with Python 2.5.

  23. David
    February 26th, 2010 at 02:14 | #23

    Hi, Paolo Thanks for your reply! I was doing the first tutorial, but the animation is not in the downloaded files. I manage to get the script in AE and rendered the animation my self, but I don’t know the exact way you have rendered it or the amount of frames you used. Don’t blame me for stupid questions!
    Greetings David

  24. Pret-A-3D
    February 26th, 2010 at 07:22 | #24

    @David, the animation parameters are saved in the scene file that I included. I didn’t now incldue the animation as it would make the archive huge and it can be recreated by hitting the “Animate” button.

    Hope this helps.

  25. David
    February 26th, 2010 at 14:37 | #25

    Hallo Paolo, Thanks again! I did what you suggest, but get a very large amount of animation files. I’m new to Blender and AE. In the tutorial I see you picking only one animation file. When I hit the Animate button It go’s on and on. The animation is running in a loop when you open your project. Is that how it supposed to work?
    David

  26. Pret-A-3D
    February 26th, 2010 at 14:46 | #26

    @David, the animation generates a sequence of PNG files, that’s how I render all my 3D animations, I almost never generate a movie clip. I’ll make it the subject of another tutorial but for now trust me that there are good reasons for doing that. Render the animation first and then use the AEE to export it. The AEE will detect the rendered footage, sequence of images, and it will add a command for After Effects to load it as a single clip. It happens automatically.
    If you want to do it manually, in AE use File/Import and the click on the first file of the sequence and be sure that you have the “Sequence of PNG” option checkmarked.

  1. February 2nd, 2010 at 19:31 | #1