Package NetworkRender
[hide private]
[frames] | no frames]

Package NetworkRender

source code

NetworkRender.py helperfunctions/classes for Network Rendering in Blender

This file is called __init__.py since there is both a module NetworkRender and a package NetworkRender


Version: 1.00 2008-10-20

Author: Michel Anders (varkenvarken)

Copyright: (cc) non commercial use only and attribution by

Submodules [hide private]

Classes [hide private]
  Interrupt
unfortunately, as of yet this does not seem to work :-(
Functions [hide private]
 
allowedAddress(own, other)
Check whether two ip addresses are local to eachother.
source code
 
_debug(*args) source code
 
_nodebug(*args) source code
 
debugset()
Enable debuging output if the Blender 'rt' variable is set to 7
source code
 
saveblend()
Save the current .blend file as a temporary file.
source code
 
displaystats(stats, n, starttime, endtime)
Print rendertime statistics for the various remote and local threads.
source code
 
collate(imagelist, outputfilename)
Collate a list of images to a single image.
source code
Variables [hide private]
  __url__ = ["Author's site, http://www.swineworld.org/blender"]
  __email__ = ['varkenvarken is my nick at blendernation.org, PM...
  __history__ = ['1.00 2008-10-20, code refactoring and document...
Function Details [hide private]

allowedAddress(own, other)

source code 

Check whether two ip addresses are local to eachother.

Parameters:
  • own - ip-address as dotted quad, i.e. 1.2.3.4
  • other - ip-address as dotted quad, i.e. 1.2.3.4

    The 'other' address is considered local (and therefor allowed) to the 'own'address if it is:

    • a localhost address 127.*.*.*
    • in a local C-address range and shares the first 3 quads
    • in a local B-address range and shares the first 2 quads
    • in a local A-address range and shares the first quad

saveblend()

source code 

Save the current .blend file as a temporary file.

Returns:
(scn,context,scenename,name)

scn is the current scene object context the current rendering context scenename the name of the current scene name the name of the temporary file

Warning: sideeffect: sets displaymode to 0 (=rendering in imagewindow) to prevent rendering window popping up

displaystats(stats, n, starttime, endtime)

source code 

Print rendertime statistics for the various remote and local threads.

Parameters:
  • stats (Queue.queue) - a queue of tuples (frames, seconds, errorframes)
  • n (int) - total number of frames to render
  • starttime (float) - start time in seconds since epoch
  • endtime (float) - end time in second since epoch
Returns:
per frame filenames sorted by framenumber

collate(imagelist, outputfilename)

source code 

Collate a list of images to a single image.

Parameters:
  • imagelist - list of filenames
  • outputfilename - file to write collated images to

Variables Details [hide private]

__email__

Value:
['varkenvarken is my nick at blendernation.org, PM me there']

__history__

Value:
['1.00 2008-10-20, code refactoring and documentation update', '0.03 2\
008-10-9, code cleanup and bug fixes', '0.02 2008-10-8 better debuggin\
g and robustness (requeueing failed frames)', '0.01 2008-10-6 initital\
 version']