BG Renderer CS3

All things .jsx

Moderator: Paul Tuersley

Post Reply
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

It is with great pleasure that I announce the official version of the BG Renderer for After Effects CS3.

Image

It now runs as an embed-able panel that is saved as part of your workspace. It also utilizes the built in multiprocessing support that was added in CS3. This script takes whatever items are queued and ready in the render queue and sends them to render in the background allowing you to keep working in After Effects. There is a comprehensive built-in help that explains all the nitty-gritty.

You can download the script here: http://aescripts.com/2007/08/30/bg-renderer-cs-3/

-Lloyd
Last edited by lloydalvarez on November 8th, 2007, 5:54 am, edited 1 time in total.
Colin Braley
Posts: 13
Joined: July 14th, 2005, 7:33 pm
Location: VA
Contact:

Thanks Lloyd, this is a very usefull script... especially for those without the $ to buy Nucleo. Why no source code this time around however?
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

making it a .jsxbin makes it so that it doesnt run unless it's properly installed in the ScriptUI Panels folder (on mac anyway). If you want to see the source code send me a PM with your email address and i can send you the .jsx file..

-Lloyd
tyler paul
Posts: 4
Joined: January 2nd, 2008, 10:31 am

It would be really great if you could add the exact time each frame was rendered in the next release. I'd like to be able to estimate how long it'll take to render down the project.
agrapha
Posts: 8
Joined: March 22nd, 2006, 11:04 am

I am using your BG render script to bug check the MP process on my 8-core. I am doing $K imagery, and have not seen any benefit to the MP checkbox.

Your scripts memory check vs # of cores was a good insight (2GB per core recommended).


I have limited the number of procs for BG rendering in the prefs. Does your script check that?


AG
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

Ag:

If you are getting the memory warning it means that you don't have enough RAM to see benefits from MP. As a matter of fact you might even slow your renders down since each process requires it's own allotment of RAM to render and they will be memory starved if there isn't enough and it will cause the system to memory swap which is very very slow.

There is some good news however. If you upgrade to 8.0.2 (released yesterday) there is now a system pref you can set to tell AE how many procs you want to use (in previous versions it used all the procs every time) for MP.

This is from the 8.0.2 tech notes:
Multiprocessing performance issues with multi-core machines, especially high-end 8-core hardware. When all 8 cores try to render a complex or memory intensive composition with Render Mutliple Frames Simultaneously, the application can become memory starved if each process has insufficient memory. To remedy this, there is a text preference to control the maximum number of cores that Render Multiple Frames Simultaneously will use. Open the text preference file and look in the ["MP"] section for: "MaxNumberOfProcesses" = "0". "0" is the default setting, which disables this preference setting. For better performance on an 8-core machine with 8GB RAM, for example, change the "0" setting to "4" and save the preference file and restart After Effects. This restricts multiprocessing with RenderMultiple Frames Simultaneously to 4 cores, each getting approximately 2GB of RAM.

I plan on updating the BG Renderer to include an option to set this pref, but unfortunately it sets it for the whole app, not the BG render process.

-Lloyd
agrapha
Posts: 8
Joined: March 22nd, 2006, 11:04 am

Thanks for the reply.

4096 x 3072 stereo IMAX will even tax 8GB of RAM. The AE multiprocessor prefs I held at 4 of my 8 procs, and the BG renders would still exit and switch to FG rendering. So, I just ran 4 instances of the render engine in the FG, and it actually rendered faster. Most likely not as fast as as it should, but with a drastically reduced render time.

Sorry your cool solution was not the one I needed, butit is now in my toolbox!

AG
Olivia Presents
Posts: 1
Joined: March 31st, 2008, 2:22 am
Location: United Kingdom

Hello,

I have downloaded the 'BG render' script twice but keep getting a message telling me it can't find AE in applications (it's definitely there, I've checked) I have noticed that the icon for the script when I download it to my Power Mac G5 is black and white instead of color could that be because the download is bad or maybe it's not compatible with Mac? Any help on this matter would be appreciated.


all the best
Olivia Presents
Attachments
arbeia1.jpg
arbeia1.jpg (7.91 KiB) Viewed 30564 times
Butters
Posts: 5
Joined: September 4th, 2008, 11:34 am

Long time lurker first time poster.

Great script! I love it. Question:

If I set my MP in the app prefs to use only 4 cores out of my 8 and I go to BG render with the MP box unchecked in the UI panel, will the BG render only use 1 core?

It'd be nice to be able to set number of cores for the FG app and the BG renderer independently... is there a plan to do this? If it is even possible.
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

Unfortunately this is not possible. The max number of processors pref only applies to the FG app. If you are rendering to a frame sequence you could choose the "Skip existing frames" option in the render setting and launch several 1 processor BG renders.

-Lloyd
Butters
Posts: 5
Joined: September 4th, 2008, 11:34 am

Lloyd,

Great script! One thing:

When I go to BG render something in my queue, there are two aerender processes that start up and only one seems to process. The other goes into the "unresponsive" state and just hangs there.

Have you noticed this at all?
Post Reply