Gottfried Hofmann writes:
Sometimes your blend files may contain lot's of images that are not assigned to any texture yet still not removed when saving it (for example if they are opened in the image editor). Frederik Steinmetz shares and explains a little Python script to clean up your file automatically.
5 Comments
It seems odd that after so many years Blender doesn't have a cleanup function for deleting stuff like this, and unused materials etc. I'm sure ever new user has been confused / plagued by stuff that won't go away, even after many save/opens.
Blender does this automatically, so in theory - there is no need for a cleanup function.
In practice there are users you don't care about (for example is the image-space is a user of the image datablock - even if the image space has been switched to a 3d view - the reference remains). Though for this you can do "operator search -> Clean-up Space-data"
Blender does do this automatically, but not very well.
You have to save your file, quit Blender, open your file, save it again. Often you have to do this multiple times.
With mesh datablocks, depending on your Blender file, this can save quite a bit on the filesize. When you choose to pack you Blender files, it also saves MB's.
It's not a big problem but sometimes bores.
Guys, at least some easy understandable commands can be added to "File" in the menu. It's basics. I'm not a pure novice in Blender but now I'm starting to think I'm wrong :D Because I've didn't knew about that "Clean-up Space-data" operator. And the name isn't very obvious also.
Excellent