Wow that was fast, and very nice approach too! I didn't understand at first, but after playing with this a bit I think it'll work very well :-) I still think it would be good to have a way to view an image in a panel though. One possible example for this is I need to show an image in the texture window without Blender's texture mapping and filtering (so I can't use template_preview for this). I need to disconnect Blender's texture settings from RenderMan's image optimization because each renderer offers a wide variety of different settings for this :-/
Eric Back (WHiTeRaBBiT) Brecht Van Lommel wrote: > 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 > > > _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
