| 12345678910111213141516171819202122 |
- # Code licensed under the BSD License.
- # http://www.anki3d.org/LICENSE Panagiotis Christopoulos Charitos and contributors
- # keep methods in alphabetical order
- # blender imports
- import bpy
- bl_info = {"author": "A. A. Kalugin Jr."}
- def get_blender_images():
- """
- Gets the blender images using the materials
- """
- bl_images = []
- mats = bpy.data.materials
- for mat in mats:
- for slot in mat.texture_slots:
- if slot:
- if (slot.texture.image != None):
- bl_images.append(slot.texture.image.file_format)
- return bl_images
|