blender/release/scripts/templates_py
Bastien Montagne d30f664c04 Expose PreviewImage & custom icons to py API.
This commit mainly:

* Exposes PreviewImage struct in RNA, including ways for user to set images data.
* Adds a new kind of PreviewImage, using a file path and IMB_thumb to get image.
* Adds a new kind of custom icon using PreviewImage, unrelated to ID previews system.
* Adds a python API (utils.previews) to allow python scripts to access those custom previews/icons.

Note that loading image from files' thumbnails is done when needed (deferred loading), not
when defining the custom preview/icon.

WARNING: for release addons who would want to use this, please keep it to a strict minimum, really needed level.
We do not want our UI to explode under hundreds of different flashy icons!

For more info, see also the release notes of Blender 2.75 (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons)
and the example/templates featured with Blender.

Patch by Campbell (ideasman42), Inês (brita) and Bastien (mont29).

Differential Revision: https://developer.blender.org/D1255
2015-05-11 16:37:15 +02:00
..
addon_add_object.py Cleanup: pep8, spelling 2015-04-22 16:26:54 +10:00
background_job.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
batch_export.py Py Template: Set the active object in batch export 2014-09-21 13:20:46 +10:00
bmesh_simple_editmode.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
bmesh_simple.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
builtin_keyingset.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
custom_nodes.py Fix T42389: Removed outdated comment from custom_nodes.py example script. 2014-10-29 13:05:21 +01:00
driver_functions.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
gamelogic_module.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
gamelogic_simple.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
gamelogic.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
operator_file_export.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
operator_file_import.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
operator_mesh_add.py Correction to previous commit 2015-03-05 20:36:58 +01:00
operator_mesh_uv.py minor changes to templates 2013-10-22 00:25:15 +00:00
operator_modal_draw.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
operator_modal_timer.py remove return argument from wmOperatorType->cancel, was only ever returning OPERATOR_CANCELLED. 2013-10-30 23:08:53 +00:00
operator_modal_view3d_raycast.py Fix T43206: region_2d_to_origin_3d has no ortho offset 2015-01-13 05:41:56 +11:00
operator_modal_view3d.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
operator_modal.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
operator_node.py Fix T38008: Bug in templates operator_nodes.py 2014-01-01 12:02:43 +01:00
operator_simple.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
script_stub.py Cleanup: pep8 2014-09-17 18:36:17 +10:00
ui_list_simple.py Add ctrl-click rename to most lists in Blender UI and templates/examples. 2013-11-23 20:54:32 +01:00
ui_list.py Fix broken example, reported by Codemanx on IRC, thanks. 2013-09-29 14:57:47 +00:00
ui_menu_simple.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
ui_menu.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
ui_panel_simple.py add templates menu for OSL, use preprocessor directive color for decorators in python. 2012-12-30 01:39:55 +00:00
ui_panel.py Style cleanup: C & pep8 2014-04-15 13:11:48 +10:00
ui_pie_menu.py Cleanup: pep8 2014-09-17 18:36:17 +10:00
ui_previews_custom_icon.py Expose PreviewImage & custom icons to py API. 2015-05-11 16:37:15 +02:00
ui_previews_dynamic_enum.py Expose PreviewImage & custom icons to py API. 2015-05-11 16:37:15 +02:00