Hi, 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 appending/linking materials. Brecht. On Sat, Mar 27, 2010 at 11:29 PM, [email protected] <[email protected]> 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 > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers > > _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
