Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Aplica user 0 a todos y Fakea los que comienzan
- def borrar_mat_tex_imag(lista, test=True):
- if not test:
- for mat in bpy.data.materials:
- mat.user_clear()
- for i in lista:
- if mat.name.startswith(i):
- mat.use_fake_user = True
- for tex in bpy.data.textures:
- tex.user_clear()
- for i in lista:
- if tex.name.startswith(i):
- tex.use_fake_user = True
- for img in bpy.data.images:
- img.user_clear()
- for i in lista:
- if img.name.startswith(i):
- img.use_fake_user = True
- else:
- print('No hay modo no-test')
- borrar_mat_tex_imag(['vega', 'env', 'video', 'osd', 'item'], True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement