А как убрать все изображения в имедж идиторе, те которые были текстурами, хотя моделек нет?
import bpyprint('new run')img_names = []materials = bpy.data.materials for mat in materials: nodes = mat.node_tree.nodes for node in nodes: if type(node) == bpy.types.ShaderNodeTexImage: try: nam = node.image.name img_names.append(nam) except: print('No texture assigned to this node, no problem though') imgs = bpy.data.imagesfor image in imgs: name = image.name if name not in img_names: image.user_clear()