Package NetworkRender :: Module PartRenderer :: Class PartRenderer
[hide private]
[frames] | no frames]

Class PartRenderer

source code

Support functions for rendering a still in multiple parts.

Instance Methods [hide private]
 
__init__(self, nparts=4) source code
 
_setParam(self, scn, context, partindex, nparts)
Initializes scene and context for rendering a given part.
source code
 
_resetParam(self, scn, context)
Restore original parameters of scene and context.
source code
string
_PartName(self, partindex, nparts)
Create a temporary file for storing a rendered part.
source code
Method Details [hide private]

_setParam(self, scn, context, partindex, nparts)

source code 

Initializes scene and context for rendering a given part.

Also saves the altered parameters of scene and context for later restoration by _resetParam(). See NetworkRender.StillRenderThread for typical use.

Parameters:
  • scn (Blender.Scene) - the current scene
  • context (Scene.Renderdata) - the current render context
  • partindex (int) - the number of parts in either direction
  • nparts (int.) - the number of parts in either direction
Requires:
  • nparts = 2,3,4,5, ....
  • partindex = [0, nparts^2 >

_PartName(self, partindex, nparts)

source code 

Create a temporary file for storing a rendered part.

Parameters:
  • partindex (int) - the partnumber
  • nparts (int) - the number of parts in either direction
Returns: string
the temporary filename