Page MenuHome

Better Environment Map scripting
Closed, ArchivedPublicPATCH


This patch makes the following improvements to environment map scripting:

* Adds a "valid" RNA property to envmaps. True if the map is ready for use, False if it needs rendering.
* Adds a "clear" RNA function to envmaps. Deletes any envmap image data.
* Adds a "save" RNA function to envmaps. Writes the envmap to disc with a configurable layout. (Defaults to the current hard-coded layout.)
* Updates bpy.ops.texture.envmap_save with configurable layout support as above.

These changes, particularly configurable layouts, make exporting envmaps to other software much easier.

Event Timeline

Forgot to unify the object and operator functions! Serves me right for sitting on this patch for so long.

applied with edits
- ibuf wasnt being freed in some cases
- valid --> is_valid
- don't use extern, move env map saving into pipeline.c.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Unknown Status.Aug 29 2011, 1:35 AM