diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-05-01 15:57:14 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-05-01 15:57:14 +0400 |
commit | 792449f8f0c3fac5ac4cb29db4abaa9c4cf89cd5 (patch) | |
tree | 9e44f73c7700ab1a7d61feb6a68fb6dbc2be6407 | |
parent | 6ef603ffcfef1bd335d4e035f5150842627ef170 (diff) |
2.5 - Restored access to the Image-Type setting
This has been wrapped under Scene.RenderData, and can currently be accessed under the 'Image' panel in the Scene settings.
As in the old code, image types are only included if they are enabled when compiling. Also note that image-type specific settings have not been wrapped yet.
-rw-r--r-- | release/ui/buttons_scene.py | 3 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 43 |
2 files changed, 46 insertions, 0 deletions
diff --git a/release/ui/buttons_scene.py b/release/ui/buttons_scene.py index fa996987043..b03f288da4c 100644 --- a/release/ui/buttons_scene.py +++ b/release/ui/buttons_scene.py @@ -50,6 +50,9 @@ class RENDER_PT_image(RenderButtonsPanel): layout.itemR(rd, "color_mode") layout.row() + layout.itemR(rd, "image_type") + + layout.row() layout.itemR(rd, "placeholders") layout.itemR(rd, "no_overwrite") layout.itemR(rd, "file_extensions") diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index d61db6cc6e8..330cc5f4ca2 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -210,6 +210,43 @@ void rna_def_scene_render_data(BlenderRNA *brna) {0, "THREADS_AUTO", "Auto-detect", ""}, {R_FIXED_THREADS, "THREADS_FIXED", "Fixed Number", ""}, {0, NULL, NULL, NULL}}; + + static EnumPropertyItem image_type_items[] = { + {R_FRAMESERVER, "FRAMESERVER", "Frame Server", ""}, +#ifdef WITH_FFMPEG + {R_FFMPEG, "FFMPEG", "FFMpeg", ""}, +#endif + {R_AVIRAW, "AVIRAW", "AVI Raw", ""}, + {R_AVIJPEG, "AVIJPEG", "AVI JPEG", ""}, +#ifdef _WIN32 + {R_AVICODEC, "AVICODEC", "AVI Codec", ""}, +#endif +#ifdef WITH_QUICKTIME + {R_QUICKTIME, "QUICKTIME", "QuickTime", ""}, +#endif + {R_TARGA, "TARGA", "Targa", ""}, + {R_RAWTGA, "RAWTARGA", "Targa Raw", ""}, + {R_PNG, "PNG", "PNG", ""}, + //{R_DDS, "DDS", "DDS", ""}, // XXX not yet implemented +#ifdef WITH_OPENJPEG + {R_JP2, "JPEG2000", "JPEG 2000", ""}, +#endif + {R_BMP, "BMP", "BMP", ""}, + {R_JPEG90, "JPEG", "JPEG", ""}, + {R_HAMX, "HAMX", "HamX", ""}, + {R_IRIS, "IRIS", "Iris", ""}, + {R_RADHDR, "RADHDR", "Radiance HDR", ""}, + {R_CINEON, "CINEON", "Cineon", ""}, + {R_DPX, "DPX", "DPX", ""}, +#ifdef __sgi + {R_MOVIE, "MOVIE", "Movie", ""}, +#endif +#ifdef WITH_OPENEXR + {R_OPENEXR, "OPENEXR", "OpenEXR", ""}, + {R_MULTILAYER, "MULTILAYER", "MultiLayer", ""}, +#endif + {R_TIFF, "TIFF", "TIFF", ""}, // XXX only with G.have_libtiff + {0, NULL, NULL, NULL}}; srna= RNA_def_struct(brna, "SceneRenderData", NULL); RNA_def_struct_sdna(srna, "RenderData"); @@ -439,6 +476,12 @@ void rna_def_scene_render_data(BlenderRNA *brna) RNA_def_property_ui_text(prop, "File Extensions", "Add the file format extensions to the rendered file name (eg: filename + .jpg)"); RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL); + prop= RNA_def_property(srna, "image_type", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_sdna(prop, NULL, "imtype"); + RNA_def_property_enum_items(prop, image_type_items); + RNA_def_property_ui_text(prop, "Image Type", "File format to save the rendered images as."); + RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL); + prop= RNA_def_property(srna, "free_image_textures", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FREE_IMAGE); RNA_def_property_ui_text(prop, "Free Image Textures", "Free all image texture from memory after render, to save memory before compositing."); |