render api utility function to initialize a render layer from an image rather then...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 27 Jul 2009 18:50:10 +0000 (18:50 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 27 Jul 2009 18:50:10 +0000 (18:50 +0000)
commiteb40d8ef0f49873a7f262af367decb7e652e7618
tree0e705bf7f8b208360bf420629afb0c5193e32c48
parent324187b61a92c0c02c0e528a3f918ea73345a28e
render api utility function to initialize a render layer from an image rather then loading through python.

lay = result.layers[0]
lay.rect_from_file("somefile.png", part.x, part.y)

If the source image is bigger then the render layer x/y offsets can be used to choose the part of the image use.
release/ui/space_view3d_toolbar.py
source/blender/makesrna/intern/rna_render.c
source/blender/render/extern/include/RE_pipeline.h
source/blender/render/intern/source/pipeline.c