This script has an embedabble UI, click for an installation video tutorial

Allows you to render your Render Queue items in the background while you can continue working in After Effects.

"Name Your Own Price"
You can pay anything you want, the amount displayed in the cart is only a suggested amount.
View Cart

BG Renderer This is a new version of this script Compatible with After Effects CS3Compatible with After Effects CS4

Version: 1.6   Sign up to be notified by email when a new version of this script is posted

BG Renderer is a script that allows you to render your Render Queue items in the background while you can continue working in After Effects. It  runs as an embedable panel that is saved as part of your workspace. This version is compatible with After Effects CS3 and above, you can get the AE7 version here. BG Renderer supports multiprocessing (2gb per core is recommended to use this feature) and allows you to control the memory and ram cache for the bg render independently of the main app preferences.

    Usage:

  • Queue whatever you want to render in your render queue the way you would normally do but instead of hitting render in the RenderQueue, hit BG Render in the script palette.
  • That’s it, a separate window will open in the background and will begin rendering leaving AE free for you to continue working in.
    Troubleshooting:

  • Make sure you don’t have any illegal characters in your path or your project file. Illegal characters include accents, apostrophe’s and eccentric punctuation.
  • BG Renderer only runs in English, it will fail if you are running a different language.
  • You can also check the BG Renderer Error FAQ

Version history:

  • v1.6 added pref to turn off render sound and
    changed temp file location to fix corrupted .term file bug
  • v1.5 added additional escaped characters check
  • v1.4 fixed additional issues with Leopard, tested and approved for CS4
  • v1.3 fixed issues with MacOS 10.5 Leopard
  • v1.2 fixed aerender path issue with Windows 64bit systems
  • v1.1 added terminal instructions, and MP Ram check and warning on Mac
  • v1.0 updated for CS3

Last updated December 21st, 2009
38,971 views
Tags: , , , , , ,

About the author

I am a freelance art director and After Effects artist in New York City. I aim to provide high quality scripts that provide clever solutions for After Effects workflows.

Pingbacks

118 Comments

  • These scripts are awesome. Thank you so much for providing them! I have one request for the BG renderer script. If possible, could you add the 8, 16, and 32 bit toggle to the BG renderer? That way, you can be working in 8-bit, and render in 16-bit without having to change it in throttle to render, then change it back to keep working. It gets hard to remember to do that every time.

    Thanks!

  • Woww.. amazing. thanks for this script.

  • i just compared the performance of this script against Nucleo Pro 2 in CS4 just for curiosity and was surprised to find that Lloyd’s script was at least twice as efficient in CPU usage and used a little more than half the RAM that NP2 was taking up (running on OSX 10.5.5, Macbook Pro 2.5GHz 2GB RAM). Way to go, Lloyd! have a beer on me! (and everyone else buy him one too!)

  • This is a great plugin, and I highly recommend it. However, everytime I have the BG Renderer frame docked on my panel, and I close CS4 traditionally, it says After Effects CS4 has crashed. Now, when I take off BG Renderer off my interface panel, and I quit, AE doesn’t give me a “it has crashed” dialog box. I’m not sure if this caused by After Effects or BG Renderer. It’s not really an issue, just an annoyance. Anyways, thanks for the great plugin!

  • Hi, the scrpt ist very helpfull.

    But i have one problem, i render to mounted win-server-2003 harddisc as administrator. That dosent work, the script tell me

    “aerender Error: After Effects error: Error in output for render queue item 2, output module 1. Can not create a file in directory /Volumes/renderout/……/output. Try checking write permissions.”

    Enybody some idea ?

  • I can’t get it to work. Mac OSX, 8 Core AECS4.

    It’s grayed out.

  • Is there a way to add the “render and email” script to this? that would be great!

  • Firstly, thanks for an AWESOME script. It makes AE sooooo much more powerful. Great work!

    Is it possible to get the source of the script? I use it all the time and would like to customize it to my particular needs and whims (chief among those being targeting another machine on the network for rendering).

    Again, thank you for providing an excellent resource to the AE community.

    -Matt

  • Running BG Render on Mac OS X 10.4 8 Core, AE CS3. With Multiprocessing on, it runs great for about 1500 frames and then the system halts. Rendering continues SLOWLY and the rest of the system is just locked up. I’ve tried reducing Max Memory and the number of cores being used. Same issue occurs. Any ideas?

    Works fantastic in non-multiprocessing mode.

    Thanks
    Adam

    • @Adam – The MP option requires a min of 2GB per core to operate successfully, unfortunately the number of cores pref in the main app prefs does not work with BG Renderer so unless you have 16GB or more you are likely to see slow performance when using multi-processing. Also, you dont want to lower Max Memory as that will only make things worse.

  • Does BG Renderer work well with Vista 64 bit Home edtion OS?

    Thanks.

  • It works great with Vista 64. Let me know if you experience otherwise.

  • can i launch 2 instances of b renderer? can i use bg reneder at the same time as the regular after effects render?

  • @gybp – yes to both questions, just make sure you have at least 2GB or RAM per render instance

  • I tried the BG Render script on a WinXP 64bit installation of After Effects CS4. Got it installed properly and able to get the interface loaded AE. Unfortunately, it is unable to process what is in the queue. The Command window comes up when the BG Render button is pressed and disappears after about 20 seconds with nothing processed.

    Anyone else experienced this.

    Thankss

  • U R The best man. Where are the donation links? I’ve been away from away for about 6 months, too much shooting and photography. U know us FCP users are waiting for Ur FCP to AE scripts. Thx a bunch for all Ur hard work scripting and vid tuts.

  • I’ve been using BG Renderer for a while – super useful. Thanks for making it available. Recently though I get a prompt in the terminal window that says “Badly placed ()’s.” and nothing else happens. I know the project filename contains no illegal characters, and the sequence I(‘m rendering is also good.

    What else could it be? I’m stumped.

    • Yes! Me too, exactly this… any solutions to this problem?

    • Well, I solved this one! You can’t have parenthesis in your file name. I thought it might be sensitive to the composition name, so I had made sure that was clean, but I didn’t realize that the FILE NAME also matters. You After Effects project file name can’t have ()’s in it at all. I renamed the file, and it’s working wonderfully again.

  • Hey Lloyd,

    I’ve been using this BG renderer for months since I saw you at AENY. This is saving me so much time at work! Thanks.

    Lately, I’ve occasionally been getting a file corrupted message or just an empty terminal window pops up. When I try it the second time it is fine. What’s that about? I’m on a Mac, OS 10.5.6, using CS3.

    Thanks.

  • such a lifesaver. thanks lloyd, you are very valued in the AE community!

  • Thanks so much for making this plug in its been working great! One issue though, I just tried installing it on another machine and I keep getting this error message

    “aerender Error: After Effects error: Error in output for render queue item 2, output module 1. Can not create a file in directory /Volumes/renderout/……/output. Try checking write permissions.”

    any ideas?

    Thanks.

  • The solution to my problem was to change the permissions in the my render output folder. I located the folder in finder, then brought up the info (command+i) on that folder, then under Sharing & Permissions I had to add my user account name to the list and change my privilege to Read & Write.

  • “I tried the BG Render script on a WinXP 64bit installation of After Effects CS4. Got it installed properly and able to get the interface loaded AE. Unfortunately, it is unable to process what is in the queue. The Command window comes up when the BG Render button is pressed and disappears after about 20 seconds with nothing processed.

    Anyone else experienced this.”

    i have exacly the same problem. any solution ?

  • The BG Render Window do not show the progress. After 10 sec he is stopping to update the progress.In the wondows task manger i can see that there is still a performance running. what coud this be?

  • In the tutorial video for BG Renderer, it shows that “use multiprocessing” box is unchecked. Can someone tell me why that was done? Assuming one has a multiprocessing machine, would there ever be a reason to uncheck that box?

  • @Joel You need to make sure your machine has enough ram to handle MP properly. Min 2GB per processor is recommended but in real world test I’ve found that more is usually needed to have a successful MP render. You might also not want to tax all your processors if you are going to continue working in the foreground app.

  • This script is awesome! Make sure you’re setting the correct amount of RAM. At 16 cores, you’d better have 16Gb of RAM, or lower your RAM setting. I’m not sure if this scales mathematically, but for example if you’re running on 8Gb of RAM and have 16 cores, use <50% for “Max Mem Usage”, otherwise your render will stall.

  • Hey Lloyd, at work right now and am getting an error with BGR. It stops at the “/aerender” file path and says “no match”. Never got that before and I do have an “aerender” file app located in the app folder. Any ideas? Thanks.

  • Just a followup, apparently “[" and "]” are illegal Unix characters and caused the error. So word to the wise, make sure you don’t have source project folders named with illegal characters. Pardon me now while I go scold the editors. :)

    Thanks for the help Lloyd.

  • Please not that some plugins (Zaxwerks 3D Warps 1.5) fails to render in background (multiprocessor mode), when simultaneously used and manipulated in main AE window.

  • I love your script, works great and has been very usefull.
    I was going to write my own for some coworkers as they at times can be “challenged” but this doees the trick.
    What I was wondering was if you have thought about adding the following functionality.

    1.) When Choosing memory settings, maybe have a info window which will tell you how much memory will be used and in multi-processor mode show you how much ram you may use so one can easily adjust the settings to insure they do not overtax the system.
    This happens all the time for my co-workersand myself at times when I forget to look at system resources before rendering.

    2.) Additional settings for multi-processor mode, specify exactly how many threads or cores to use, etc. This way i can easily choose to limit processing to maybe 4 of my 8 cores, etc.

    3.) Notification when background render is done or an option to run a post render script?

    4.) Simple scheduler or sleep setting that you can use to queue the render up but wait until later to start.

    5.) Remote rendering?
    If configured able to submit the render command to a remote machine to offload the task.
    Maybe use ssh, or something similar…..not sure if this is possible or not, just curious….

  • This is real great plugin. It’s true amazing scripts. Best purely function for web designar. Thanks Guys.

  • Hi, just installed the script and it is working fine. The only difficulty is that the rendering of each frame is taking an unusual amount of time compared to regular render queue rendering (usually 20 – 30 seconds for relatively simple frames). I have played with Max Mem Usage, Max Ram Cache, and Use Multiprocessing and so far nothing seems to speed things up. Any suggestions?

  • I just installed background renderer, and it gives me a message:
    aerender Error: After Effects Error: Unable to call “openFast” because of parameter 1. Path is not valid.
    Then it gives me the path. This path (to the AE project) works fine for AE. What am I doing wrong?

  • @Dave – Make sure you don’t have any illegal or foreign characters in your path or file name. Aerender (which is what BG renderer uses to render) runs in unix so the paths and filenames need to be unix friendly.

  • hi,

    where I can download the script? I didn’t find the way to download and try it!

    Thanks a lot

  • @Ignacio – To download the script you need to add it to the cart and checkout. The script will be available for download immediately after checkout.

  • Hi there,

    I have been using the BG tool for quite some time now on various 8 core MAC’s and it works a treat. I can only add to what jmayoros has posted a while back, in regards to additional functionality when submitting the render. Especially being able to submit the render to another machine available in the network would be an amazing feature. Even if you have to manually setup a config file.

    I personally dislike the MP function AE provides – even in CS4. Especially, when you start rendering long image sequences from multiple machines with “skip existing files” enabled. It sometimes stalls and slows down horrendously (just reading the existing files, not even rendering). Therefore, I always rather use multiple instances of the terminal to launch single core renders, all feeding into the same destination, to get the most out of the machine’s capabilities. This, of course, depends on the task given.

    However, not sure whether it is at all possible, but a feature to launch multiple terminal windows at once would be very nice :) … and submit to other machines … ?

    Great tool regardless :)

    Thanks a lot

  • Hi! Just wanted to check what this error message means. Can’t seem to render my project

    aerender ERROR -609: AESend failed to send apple event at line 751
    wii:~ daniel$

    thanks

    • Make sure when you launch AE that there aren’t any alert boxes like duplicate plugins or anything else that requires user input. Not saying that this is the source of the error but this will cause an AESend error.

  • Maybe I should add that this only happens when Multiprocess button is selected

  • @Daniel – I have never seen this error before but it is an aerender error so I would let Adobe know about it. My guess is that it is project specific. Does it render in the main AE app? You can report bugs to Adobe here: http://adobe.com/go/wish

  • I too get this error:
    aerender ERROR -609: AESend failed to send apple event at line 751

    it is not project specific, it only happens when multiprocessing is turned on, and the regular AE render with multiprocessing works fine.

  • Any thoughts on why I’m getting the following error message:

    The file “BG_Renderer_temp_file.term” could not be opened because it is corrupt.

    Any ideas on how to fix it?

    Thanks for a great script!
    Trent

  • Sorry. Didn’t see the fix until after hitting submit!

  • Thanks. I did all the steps but still get the same error. Using BG Renderer CS3.

    Restarted Terminal. Restarted AE. Restart Mac?

    Thanks,
    Trent

  • Ok- I created a “ScriptUI Panels” folder, inside my “Scripts” folder.

    Placed the “BG_renderer-AE7-mac.jsx” file inside the “ScriptUI Panels” folder. Fired up my AE C33. Added a comp to the Render Queue. Went to the Window drop-down, selected the “BG_renderer-AE7-mac.jsx”.

    Then I get error massage-
    Could not locate aerender
    This script requires aerender to run.
    Please install aerender in it’s deflault location:
    /Application/Adobe After Effects 7.0/

    So I change my Adobe After Effects CS3 folder to be Adobe After Effects 7.0. Which I shouldn’t have to do…?
    Restart AE again. Place another comp to queue. This time I get a pretty messed up window with the BG controls in it. The window is separate from the nice AE window tab. I click the BG button. Then I get the lengthy “It appears something might have gone wrong.” error message… Tell me about!

    Please help.

    Machine specs
    MacOSX 10.5.8
    Macpro 2×2.26 GHz Quad-Core Intel Xeon
    12 GB Ram
    ATI Radeon 4870
    Fibre Channel w/ Sanmp
    Kona3
    Adobe cs3

  • Thanx Lloyd! You work for the community is great! Your work is inspiring and this script is what I’ve been wishing for since…a long time.

    Greetings from The Hague!

  • Can’t get it working. always get an BG Render error. Did everything as written in FAQ but have no luck. Mac OS 10.6.2 AE CS4

  • Found your interesting tool while searching for pos. to accelerate AE. I´m running AE in german language. Any chance to use your solution?

    Thank you

    Ed

    • Unfortunately I am only one person and supporting foreign languages would require more support than I am able to provide. The good news is that it is very easy to switch AE to run in english so you can use the scripts. Check the FAQ above.

  • Hi, and sorry for my poor english !!!
    I have problems running Backgroung Render CS4 on my PC (a simple Quad core/XP/4gb).
    As i launch BG RENDER, the terminal windows opens but nothing happens !!! arghhh!
    It only shut down after a while…i tried with different names for the comp and still nothing !! only this messsage in the terminal wiondow “ae render version 9.0×346 …” and nothing else !!!!! another Windows OS surprise ???

    Thanks for help :) i really need this script working !

    • Has the script worked at all or is this the first time you are trying it? Make sure that you project name and path does not have any illegal characters like accents. Lastly, I would highly recommend you upgrade to AE v9.0.2

      • thanks for your answer ..
        The script never worked..i have to try instaling a newer version of AE …it’s my last chance
        i’ll keep you informed ..
        thanks again

        • Please do, it is impossible for me to test in every scenario so if you are having trouble I will do what I can to try and fix it. Just so you know 99% of the reported problems have to do with illegal characters such as accented letters in the project name or path.

  • Hi Lloyd, I download your script who seems verry nice, but after trying it and seeing that it didn’t works, I saw that it would not work on my french AE cs4 version. Can you please tell me how to launch AE in english (on a PC) ?
    Thanks for the answer, and sorry for my poor english.

  • First off, great script! I’m shocked that I’ve waited this long to get it. I have a question about functionality though. If I have a master comp that has multiple precomps sequenced within it and I render that master comp through BG Render. If I work on the latter comps before BG Render gets to those frames, does the script render the changes I’ve made to those precomps? Or does the master comps get cached or something like that at the time you submit the job?

    Thanks again, great script!

    • When you launch a BG Render your project is saved then opened in the terminal through aerender. You can then continue working on your project and any changes after the save won’t be reflected in the background render. One thing to note is be careful not to save your project again until the BG Render has started. One thing I do for example is to create versions I launch a BG Render, wait for it to start, make changes to the project for the next version launch the BG Render again and repeat until I’ve saturated the number of BG Render instances my amount of RAM can support. I try to have at least 2.5GB of RAM per process plus 2.5GB for the system and 2.5GB for the main AE app. For example on a machine with 20GB of RAM I can launch 6 BG Renders, but make sure you don’t have any other apps running as these will require RAM as well. Hope that helps.

      • Definitely helps, thanks!

        One more question, and I think I know the answer, but I didn’t see it specifically mentioned above. Does BG Render work with Throttle? It seems like it does from using it earlier, but if I spawn a second instance with MP turned off through Throttle could I have the first instance using 4 cores and second using only 1? I have an 8-core machine with 18GB of RAM.

  • hello,

    great script :)

    is possible to create a queue of another render, opening another comp after the first render is started? because anytime I hit the render button there is an instance if background render how sucks out my little – 2gb :( – ram -

  • hi,
    does that script run on windows7, too? i only found mac-screenshots and couldn’t locate a compatabilities-list anywhere on the website. unfortunately i purchased it before looking that up and every time i run the script it only displays an almost empty run-window for a short while, then
    thanks for responding!
    sven

    • It definitely runs on Windows 7, however, Windows 7 is very restrictive with it’s permissions so make sure that the user running after effects and launching the script have permissions to save a file to the users documents folder and run aerender which is located inside the support files folder in the same folder as the AE application.

      • Just tested BG Renderer on Windows 7 using a regular user account and it worked fine. Maybe it is a permissions issue on the destination you are rendering to? Check to make sure you have permission to write to the drives you are rendering to.

  • Thanks for all the answers to the comments. If anyone has found a resolution for the: aerender -609 error, please let me know.

    I am not running into this issue but a few people using the AERender applescript droplets from my site are and it would be great to help them get that resolved.

    I would probably recommend creating a new test user account and see if you run into the same issue, and possibly even a reinstall of AE, but I have no knowledge of this resolving the issue or not.

    Thanks again.

  • I’ve been using BG Renderer for a while now, but I’ve recently run into a problem. In CS4, any time I try to render anything with multiprocessing on, it fails and says “There is an error in background rendering so switching to foreground rendering after 1 frames….” I haven’t had this problem before until the past couple of days. It works fine in CS3.

    I checked out the Activity Monitor while I tried rendering and it seems like the aeselflink processes never get up to speed like they do in CS3. One of them gets to 94%, but when it tries to start another one, it never gets very high and terminates. In CS3, all 4 aeselflink processes load and get up to >90% and works correctly

    Do you have any idea why this would be happening or a way I could try to fix this? Thanks.

    • This is an aerender error so you should report it directly to adobe: http://adobe.com/go/wish
      Having said that, it’s hard to say why that would be happening but generally MP tends to be kind of flakey and certain plugins don’t play well with it. Can you try rendering a project without any 3rd party plugs and see if it still happens? I suspect it is plugin related but that is just a hunch.

      • Thanks for the reply. Sadly, I just tried a comp without any plugins and I just ran into the same problem. I just used a piece of footage, a solid with a mask animating, and that’s it. I’ll send in an error report to adobe and I might try a fresh install.

  • Hi, this script is very useful, excellent job! While I used this scripts kind of often, I just have a new error message when I tried to use it: Popup message saying that – The file “BG_Renderer_temp_file.term” could not be opened because it is corrupt. It may have been incompletely copied from another machine. – No chance I did a copy from another machine.

    I reinstall the script, empty the cache database, run it from another location etc… but still this message… I am on CS4 latest update with macpro intel 10.5.8, the only thing I could imagine from now, it’s the latest MacosX security update I did 2 days ago… Any ideas?

    Thanks!

  • I have had BG render on my mac when i got CS3 i have had no problem it till now. I was rendering a project and i got this error message

    ” The file “BG_Renderer_temp_file.term” could not be opened because it is corrupt. It may have been incompletely copied from another machine.”

    after going into the site seeing there is a new BG and followed the instructions to clear the preferences line – restarted AE – hit BG and the terminal window pops up

    “Last login: Sat Apr 24 19:58:44 on ttys000
    Macintosh”

    and nothing else – i have reinstalled all DUi scripts – and still nothing. no matter what project i’m in i keep getting the same window

  • Hi,
    Thanks so much for your script. It has really helped my productivity by freeing me up to work on different projects. I do have one concern. Some clients prefer QuickTimes with BlackMagic, others AJA Kona. In AEP, I different Output Modules set up for this. When I set a project to render using your script, I have noticed in the terminal window that the script is calling up the AJA Kona codec instead of the BlackMagic.
    (from the terminal window)
    PROGRESS: Output Module: 10bit BlackMagic w Audio
    PROGRESS: Output To: HW59 Project HD2:212_06Test2.mov
    PROGRESS: Format: QuickTime Movie
    PROGRESS: Output Info: AJA Kona v210 Codec
    Is there a way to fix this? If not, I’ll continue to render QTs that require blackMagic out of AEP. No biggie.
    Thanks again.
    rice

  • So, has it been updated for CS5?

  • BGrenderer is the best!!! Just wanted try the new “fast” AE CS5, but the big comps with HD and bigger were faster rendered with BGrenderer!!!!! Love it

  • First I would like to say thank you for that great tool!

    And here is my current problem:
    I have updated to the latest bgrender script 1.6 yesterday.
    Since then after rendering the 11th comp in the queue the rendering stops with this log entry: “After Effects can’t continue: Unable to execute script at line 728. Uncaught exception After Effects can’t continue: sorry, After Effects has crashed.”
    This is repeatable and throws the same error all the time at the 11th comp.

    I can continue the queue with a new bgrender without a problem – so it is definitely not a problem with illegal characters or the footage.

    And with the older bgrender versions it ran through the same queue without any problem.

    My setup:

    Vista64 SP2 / 8GB / Quadcore
    After Effects CS4 9.0.2
    bgrender: MP=OFF, low priority, MaxMem=120, MaxRam=60
    Rendering to 720p 10bit Blackmagic 4:2:2 uncompressed

  • Does this work with CS5? Can anyone confirm this?

  • I’m having some problems with this script when trying to run it in CS5. I’ve attached a video to show the problem I’m having. It works perfect in CS3. Multiprocessing never seemed to work in CS4 for me. And now in CS5 it doesn’t work at all. I’ve downloaded the most recent update and everything. I’m not sure if it’s a problem that I have CS3, CS4, and CS5 installed on the same machine or not.

    http://www.stubbysquirrel.com/BGRendererProblem.mov (right-click and save)

    Not sure if this is a problem you could give insight on or if it’s something I need to contact Adobe about.

    • Saw your screencast and that is definitely strange but unfortunately beyond the realm of BG Renderer. All BG Renderer does is pass the project to aerender in the terminal and launches it which is happening successfully. The crash happens when the ae instance is being launched by aerender. So I would definitely report it to Adobe, you can do that here: http://adobe.com/go/wish

      Having said that, one thing I would try is changing the location of your project file. Try saving it on your desktop or another volume and see if the render launches there.

      • I also tried this on CS5 and had no luck. It worked on CS4 though.

        For CS5 it says PROGRESS: AE successfully launched, but then nothing happens.

  • I have idea how to enhance this script. Could you add few switches/dialog boxes to run multiple copies of aerender process with difference combination of frames ranges? (ex. 0-100,101-200,201-300 or 0,3,6,9,12…; 1,4,7,10,12…; 2,5,8,11,14)
    I have AE CS4, and sometimes I have report (in info panel) – “incompatible effect or expression – multiprocessing disabled”. I don’t know AE CS5, but in CS4 case, aerender running in 4 copies is 4 times faster than regular render with multiprocessing enabled (in preferences).
    I wanted to do it myself (for me only), but this is jsxbin file …

  • I was going to tweak this script to add support for Growl/Prowl on a Mac… Until I saw it was a binary. Is there any way to get a checkbox for growl/prowl notifications? In the end I believe it could be an additional command sent to the terminal, eg: «/usr/local/bin/prowl.pl -apikey=SERIESOFREALLYLONGALPHANUMERICS -application=\”AE\” -event=\”"Render Finished” -priority=1;»
    This is all provided growl & prowl are installed of course…

    The idea came from this script by John Einselen, which is itself adapted from some of your scripts. http://iaian7.com/aftereffects/iPhoneRenderNotifications

  • Hi there, is there a version that is compatible with CS5 yet? Really need to use it on a job next week, and have to work on CS5 unfortunately.

    Thanks!

    Dom

Leave a comment

(to reply to a specific comment use the link by the comment)