# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### bl_info = { "name": "Find Missing Textures - FMT", "author": "GilaDDD", "version": (3, 5), "blender": (2, 80, 0), "location": "Properties > Scene tab > Find Missing Textures", "description": "Powerful tool that simplifies managing missing textures. Quickly locate broken image paths and get detailed reports of the objects, materials, and nodes using them.", "doc_url": "https://blendermarket.com/products/report-missing-textures--fmt/docs", "category": "Material"} from . import ops_fmt, panels_fmt import bpy from bpy.props import IntProperty, CollectionProperty, PointerProperty, BoolProperty def draw(self, context): layout = self.layout layout.operator("texture.find_missing_textures", text ="Report Missing Textures (full report)") # def warnning_before_render(self, *args): # bpy.ops.texture.find_missing_textures() classes = ( ops_fmt.TEXTURE_OT_find_missing_textures, ops_fmt.TEXTURE_OT_find_in_folder, ops_fmt.TEXTURE_OT_remove_image, ops_fmt.TEXTURE_OT_search_bars, panels_fmt.FMT_PT_Panel, panels_fmt.ListItem, panels_fmt.List_View, panels_fmt.SearchBars, ) def register(): for cls in classes: bpy.utils.register_class(cls) bpy.types.Scene.fmt_list = CollectionProperty(type = panels_fmt.ListItem) bpy.types.Scene.fmt_search_bars = CollectionProperty(type = panels_fmt.SearchBars) bpy.types.Scene.fmt_list_pointer = PointerProperty(type=panels_fmt.ListItem) bpy.types.Scene.fmt_list_index = IntProperty(name = "", default = 0) bpy.types.Scene.fmt_extension_replace = BoolProperty(name = "replace_ext", default = 0) bpy.types.Scene.fmt_select_bad_obj = BoolProperty(name = "select bad objects", default = 1) bpy.types.TOPBAR_MT_file_external_data.append(draw) # bpy.app.handlers.render_init.append(warnning_before_render) def unregister(): # bpy.app.handlers.render_init.remove(warnning_before_render) del bpy.types.Scene.fmt_list del bpy.types.Scene.fmt_search_bars del bpy.types.Scene.fmt_list_pointer del bpy.types.Scene.fmt_list_index del bpy.types.Scene.fmt_extension_replace bpy.types.TOPBAR_MT_file_external_data.remove(draw) for cls in classes: bpy.utils.unregister_class(cls)