sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Reply
 
Thread Tools
Techmeology's Avatar
Techmeology Techmeology is offline
Member
 
Join Date: Feb 2006
Posts: 180
!!!This script now has a home on my new website!!!

Hello!
I have written a script designed to make it easier to render animations by sharing the frames between computers. Follow the link above for more information!

............................................
I hope my posts are helpful.
New and Experienced, look at My Website!

Last edited by Techmeology; 06-May-06 at 12:43. Reason: I have a website now!
#1   Old 13-Apr-06, 10:03   
Reply With Quote


lobo_nz lobo_nz is offline
Member
 
Join Date: Jan 2006
Location: New Zealand
Posts: 87
This script is great, I had it working real quick and worked great.

I have been looking for a simple distributed render system for a while, I tried drqueue which works well but the windows version diddn't work for me and I have both linux and windows pc's I use.
The jobs I do are small enough to simply copy the blend and render different frame ranges so this script is perfect for me as it saves me splitting things up

I can see with a little more work this sript would could easily have the client wait for a render to be submitted, so that you dont have to submit the render then start the clients and also to be able to queue up several jobs (which may be possible I havn't read all the code yet).

I'm sure you have allready planned on such things.

I would be happy to post this script on my small blender scripts page (http://blender.formworks.co.nz) if you want a location for it I see you said you had no where else for it to go.

I cant wait to see the next version.
............................................
yet more blender scripts http://blender.formworks.co.nz/

Last edited by lobo_nz; 15-Apr-06 at 07:39.
#2   Old 15-Apr-06, 07:22   
Reply With Quote
Techmeology's Avatar
Techmeology Techmeology is offline
Member
 
Join Date: Feb 2006
Posts: 180
I'm very glad you like it, and found it easy to get going. I had problems with DrQueue too, that's why I wrote the script in the first place.

I did try to make the clients wait, but I decided to candel/postpone that feature because it caused too many problems and I wanted to be able to use the script (it might not be here at all, if I gave up because of that). I might revive that endevour at some point.

Several queued jobs sounds like a good feature too (I didn't think of that, thanks). For that, I would probably get the submittor to wait until the previous job had finished.

I don't mind at all if you want to mirror my script on your website (thank you very much if you decide to do so).

Once again, I'm glad the script was useful.
............................................
I hope my posts are helpful.
New and Experienced, look at My Website!
#3   Old 15-Apr-06, 10:02   
Reply With Quote
lobo_nz lobo_nz is offline
Member
 
Join Date: Jan 2006
Location: New Zealand
Posts: 87
Hi Techmeology, I posted your script here:
http://blender.formworks.co.nz/farm_...rm_render.html
Also with link from my main page:
http://blender.formworks.co.nz/

Saw your post on Blendernation

I made a zip with all files in to make it easier to try out for lazy people like myself.
let me know if you have any modifications you want to the page or if you have any updates to the script.
............................................
yet more blender scripts http://blender.formworks.co.nz/
#4   Old 23-Apr-06, 00:00   
Reply With Quote
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
Some hints

Extn = SettingsTxt.readline().replace ('\n', ' ').rstrip()
can be simpler
Extn = SettingsTxt.readline().split()[0] # splits by whitespace anyway


ctxt.saveRenderedImage (Blender.sys.join (Blender.sys.join(ShareLoc, 'Render'), mname + str(Blender.Get('curframe')) + Extn))
better use blenders internal naming and numbering.
use expandpath
ctxt.saveRenderedImage (Blender.sys.join (Blender.sys.join(ShareLoc, 'Render'), Blender.sys.extendpath(mname + '#') + Extn))

... where # is replaced with the frame number.

I also found that forcing the rendering to PNG's was nice , though with EXR and better formats you may not want this.
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com
#5   Old 23-Apr-06, 00:43   
Reply With Quote
Techmeology's Avatar
Techmeology Techmeology is offline
Member
 
Join Date: Feb 2006
Posts: 180
Hello.

lobo_nz:
Thank you very much for mirroring my scripts (and putting them in a convenient .zip file).
Quote:
Originally Posted by lobo_nz
Also with link from my main page:
http://blender.formworks.co.nz/
I didn't see the link (I'm not complaining, I just thought you should know). You even gave it a version number for me (it's great to: "major release"."minor release"."development").

cambo:

Quote:
Originally Posted by cambo
I also found that forcing the rendering to PNG's
Really? You should be able to render as a sequence of any still frames Blender supports. Also, thank you for the suggestions. I don't know about using readlines.spit()[0] (I'd probably want to look into that, thanks either way, though). Extendpath looks like a better option; thank you very much for that.
............................................
I hope my posts are helpful.
New and Experienced, look at My Website!
#6   Old 23-Apr-06, 11:18   
Reply With Quote
Techmeology's Avatar
Techmeology Techmeology is offline
Member
 
Join Date: Feb 2006
Posts: 180
Also, lobo_nz, I just thought you might like to know that this "http://www.cncsimulator.com/" in the links section at the bottom of your page is not a hyperlink.
............................................
I hope my posts are helpful.
New and Experienced, look at My Website!
#7   Old 23-Apr-06, 19:15   
Reply With Quote
lobo_nz lobo_nz is offline
Member
 
Join Date: Jan 2006
Location: New Zealand
Posts: 87
Ah yes I just dumped those there for me, I was intending on making a links page for all the stuff I find but have not had the time yet, thx for reminding me they were there.
............................................
yet more blender scripts http://blender.formworks.co.nz/
#8   Old 24-Apr-06, 21:55   
Reply With Quote
glaurung's Avatar
glaurung glaurung is offline
Member
 
Join Date: Nov 2004
Location: Barcelona, Catalunya
Posts: 100
Hello,

I'm swimming on working with this script, and I have some questions. In the readme file,

Quote:
In blender, make sure the type of render matches the extension you gave. Make sure this is a single image format, and not an animation. They should be saved as single frames.

Clear the output directory (in the output panel of the scene buttons, at the top). There should be nothing, not even a slash here.

Go to "File-->Open" (in the script window) and open the "FR_Listen.py" script.

Go to the Scripts window. Launch the "Scripts-->Render-->Farm Render" script.
Hit "Submit" followed by "Activate".

On each of the computers you want to render on (this can include the server), go to the Farm directory and open the FR.blend. On windows, you may be able to simply double click this. On Linux, you might have to open it through Blender.
So, when you speaks about FR.blend, you mean the saved *.blend with these settings (image sequence, output path) and the renderable content itself?
You haven't not mentioned this FR.blend file in the readme before, so I'm not sure what must contain this file or where i can find it.
I suppose I should run this scripts and press Submit and Activate on each node.
Can you explain a little these questions?

Thank you,
Glaurung
............................................
Raimon Guarro i Nogués
IMATGEDART, Artesania de la Imatge digital
#9   Old 17-Jun-06, 16:32   
Reply With Quote
Techmeology's Avatar
Techmeology Techmeology is offline
Member
 
Join Date: Feb 2006
Posts: 180
Submit and activate should only be used in the .blend file containing the scene which you want to render (it is not neccesary to do this on every machine). FR.blend is a file created in your farm directory which, when opened in Blender, automatically starts rendering frames.
............................................
I hope my posts are helpful.
New and Experienced, look at My Website!
#10   Old 19-Jun-06, 18:28   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
distributed rendering zynek Basics & Interface 2 08-Dec-05 20:03
some questions for my yafray network rendering script radiance Other Software 0 25-Aug-04 08:30
Autoexecuting a script and rendering a scene ... trueslash Python & Plugins 5 12-Nov-03 06:08
Distributed Rendering for Windows SHABA1 Basics & Interface 0 25-Mar-03 14:59
Script for distributed rendering S68 Python & Plugins 1 15-Sep-02 13:02


All times are GMT. The time now is 18:27.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists