NokiMo
chippwalters
chippwalters

patreon


A couple nifty addons you might find helpful

Hey folks,

I've been meaning to write these two for sometime now.

Many times, after working on a scene for a number of hours or days, I find that I've ended up with multiple materials, with each having the same image textures. For instance, in EEVEE+CYCLES Materials, I use this scratched png to help create a realistic texture on some metals. And it can also be used on glass as well. So...now I have 2 versions of the same texture taking up memory in my scene.

So, the first addon, called Material Image Remapper, solves this problem nicely. It works by looking specifically at the data of each texture image and if it finds the data matches, then it tags it as a duplicate of an existing image. Once all reviewed, it goes ahead and remaps all the duplicates to a single texture image in all of the affected materials.

Then it's easy for you to use Recursive Unused Data Blocks under the File: Clean Up menu to remove the files from your scene.

The second addon solves another memory issue-- but this one is file storage. As many of you know, Blender creates backup files called .blend1. And these can certainly come in handy-- they've saved my rear many times! Still, they do add up and years of these files can consume huge amounts of disk space.

This addon is called Delete .blend1 Files in Current Dir

And it does just that. Whatever folder your current file is open with, this addon will scan and delete the .blend1 files there. And when you press the button, it will give you the ability to also delete .blend1 files from all subdirectories as well. When finished, it reports below the number of files deleted.

Both of these utils end up in the Edit menu on the N-Panel. You can access them there. Here are the links:

https://www.dropbox.com/scl/fi/463sfyg4xaphj433a9pso/cw-del-blend1-files-in-current-dir.py?rlkey=bvwx48cpqbwkvu6vsn4i870st&dl=0

and

https://www.dropbox.com/scl/fi/50xopik1w7dmoea7n9r7p/cw-remap.py?rlkey=iuib98wuwtzkp7echx3anw1nl&dl=0


Let me know if you have any issues. Seeya around!

A couple nifty addons you might find helpful

Comments

Unfortunately that's a not a batch tool, and not well designed for large scenes that may have thousands of textrues

Russ Swaney

See Remap users in Blender File in the outline manager

Chipp Walters

Nice, been using similar tools for over two decades in Max at work - 'Consolidate Materials'/'Find and Replace Duplicates' and 'Purge', nice to get these for blender. Just need a good way to copy/move to a new location/relink textures in Blender

Russ Swaney

Thank you Chipp, another great tool.

Uwe Bröckert


Related Creators