[Bf-committers] 2.5 API: How to show an image as a preview in a panel?
Brecht Van Lommel
brecht at blender.org
Sun Mar 28 17:14:46 CEST 2010
I've added an option bl_preview now to let the external render engine
also render the preview. This is just like a regular render (the
preview scene is a .blend file embedded in Blender), so should be
simple to get working.
If you want more flexibility, we could make the preview template
support images, though I think it would be good if external engines
used the same preview system as Blender does if possible. Then it will
work automatically for this, but also e.g. the previews when
On Sat, Mar 27, 2010 at 11:29 PM, whiterabbit at dreamscapearts.com
<whiterabbit at dreamscapearts.com> wrote:
> Hey all,
> I have another 2.5 Python API question.
> I'm trying to find a good way to pass a render from RenderMan into a
> preview window in a panel (for previewing material shaders, light
> shaders, ect). I'm currently doing this by loading the file as an Image
> and then setting it up as a Texture to view in
> UILayout.template_preview(). This is cumbersome however and the texture
> settings stretch the image on preview. Would it be possible to have
> UILayout.template_preview() also use an Image ID datablock or is there a
> better/simpler way to achieve image previews?
> Thanks in advance,
> Eric Back (WHiTeRaBBiT)
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers