BG Renderer

All things .jsx

Moderator: Paul Tuersley

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

November 30th, 2006, 8:29 pm

Image


You can download the script here: http://aescripts.com/tag/bg-renderer/
Note: Script requires After Effects 7.0 or higher

This script takes whatever items are queued and ready to render in the render queue and sends them to render in the background using aerender in a new Terminal (mac) or Command (pc) window where the render progress can be monitored.

It also had the added advanced feature to launch more than 1 instance at a time. If you have a multi-processor machine, you can launch as many instances as you have cpu's. In my testing, this cut render times in half on a Quad G5 using 4 intances. (having at least 1 GB of ram per instance launched is recommended).

There's lots of error checking behind the scenes so I did some beta testing to make sure it doesn't have any bugs, but as always please share anything (good or bad) that you encounter.

The script has lots of built in help to clear things up.

Enjoy!

-Lloyd
Last edited by lloydalvarez on November 15th, 2007, 9:24 am, edited 6 times in total.
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

November 30th, 2006, 10:35 pm

Great work Lloyd !

For the Windows version, you should add 5 units to the height of the "Refresh", "Show Queued.." and "Set.." buttons (and they'll appear like on your screenshot).

I don't know exactly what is wrong with your scheduleTask stuff (to remove the .bat file) but if you put this snippet at the end of the createTerm function, this should do the trick (at least during my test).

Code: Select all

var i = 0;
while(i < 1000000) i++; 
termfile.remove();
Anyway, very nice script !
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

December 1st, 2006, 4:51 am

Thanks for that nab.. but since the .bat file is in the temp directory and it's < 1k i wasn't too worried about it. :wink:
pc2099
Posts: 2
Joined: December 5th, 2006, 4:41 am

December 5th, 2006, 1:31 pm

Ive been waiting for Gridiron to release a nucleo pro type product for Premiere Pro. Given dual core is the norm now and most are moving to quad, some kind of background rendering app for this NLE would be awsome.

Just wondering if its possable to modify your plug in or write a new one to enable this in Ppro or if its not possable?

Cheers

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

December 5th, 2006, 1:52 pm

pc2099 wrote:Ive been waiting for Gridiron to release a nucleo pro type product for Premiere Pro. Given dual core is the norm now and most are moving to quad, some kind of background rendering app for this NLE would be awsome.

Just wondering if its possable to modify your plug in or write a new one to enable this in Ppro or if its not possable?

Cheers

Pablo

not sure. it depends on whether premiere can be controlled from the command line. I am on mac so i have not worked with PPro. If PPro can be controlled from the command line then it might be possible to write a BG rendering script.

-Lloyd
pc2099
Posts: 2
Joined: December 5th, 2006, 4:41 am

December 5th, 2006, 2:42 pm

Hmmm - no idea if it can or not. Will have to find out. Out of curiosity - do you know if background render is possable on FCP or if somethign could be written for it?

Cheers

Pablo

PS - did you see Grtidioron has knocked $100 of their nucleo pro... do you think you scared them with your free app here or just a coincidence? ;-)
pants
Posts: 22
Joined: October 8th, 2004, 8:35 am

December 7th, 2006, 5:28 pm

thanks for this scripts. way cool.

i'm trying it out now. and i have it working in the bg now and i quit after effects (7.0). then i did some work in another ap but i wanted to launch ae again and it won't launch now.

is this normal? is any one else getting this? the bg renderer is still going and doing fine though.

i'm on a mac os x 10.4.8 3gb ram, dual 2.0 g5 if that helps.


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

December 8th, 2006, 1:46 pm

pants wrote:thanks for this scripts. way cool.

i'm trying it out now. and i have it working in the bg now and i quit after effects (7.0). then i did some work in another ap but i wanted to launch ae again and it won't launch now.

is this normal? is any one else getting this? the bg renderer is still going and doing fine though.

i'm on a mac os x 10.4.8 3gb ram, dual 2.0 g5 if that helps.


thanks
Hi Pants,

This is a known bug with After Effects on the mac (this is not an issue on windows). That's why I put the Important Note message right on the script dialog box:

Image

The workaround is to not quit AE if you plan on re-using it or to quit the background render, launch AE and re-send the bg render.



The After Effects team is aware of this bug.

-Lloyd
Last edited by lloydalvarez on November 8th, 2007, 5:51 am, edited 1 time in total.
yogert909
Posts: 10
Joined: April 10th, 2006, 4:52 pm
Location: los angeles

December 8th, 2006, 4:55 pm

HUGE! Thank you!

is it possible to pause or stop the renderer through the terminal?

Thanks again.
pants
Posts: 22
Joined: October 8th, 2004, 8:35 am

December 8th, 2006, 5:11 pm

DOH!

i'm so blind, i didn't even see that.


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

December 9th, 2006, 10:31 am

yogert909 wrote:HUGE! Thank you!

is it possible to pause or stop the renderer through the terminal?

Thanks again.
You can't pause the render. To stop it you can just close the terminal window. Alternately you can type CTRL-C in the window and it will stop the render as well. Please be aware though, that if you are rendering to a Quicktime it might not close it properly. What I do is I duplicate the quicktime, open the copy to make sure it's OK, then I stop the render.

-Lloyd
ldgarza
Posts: 2
Joined: December 20th, 2006, 5:31 pm
Location: The Wrong LA

December 21st, 2006, 9:20 pm

Seems like this will only work as long as you are continuing work in the same project file as the script loaded in the render queue...?

..you can't load a new project and work on that while the previous script is rendering , yes, no ?

I haven't tested..crazy times...

..would be terrific if you could load a new project while the previous one cooked..

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

December 22nd, 2006, 7:06 am

ldgarza wrote:..would be terrific if you could load a new project while the previous one cooked..
You can definitely load new projects 8), you don't have to stay in the same project in which you launched the script. The render basically happens in another application so you are free to do anything you want while the render happens in the background.

-lloyd
ldgarza
Posts: 2
Joined: December 20th, 2006, 5:31 pm
Location: The Wrong LA

December 22nd, 2006, 11:24 pm

Wonderful!...have loaded her up and early runs show great promise!

Super Job!!...don't know how you do it but I'm glad you do it!

Thanks, Lloyd.... and Merry Christmas!
salvazalvi
Posts: 36
Joined: September 21st, 2004, 7:29 am

January 25th, 2007, 10:06 am

Hi,

I'm trying your script and it seem quite usefull but I use expressions and the default AE is set to french, so expression don't work. Where do I modify your script to tell him to launch english version of AE ?

Thanks,

Salvador Zalvidea
Post Reply