AssetLibraryTools is a free addon which aims to speed up the process of creating asset libraries with the asset browser, This addon is currently very much experimental as is the asset browser in blender.
This is my first proper blender addon so I’m sure there are parts of my code which should be changed, please do point them out to me if you decide to go through the code.
I hope you guys find this addon helpful
If you have any issues or suggestions please leave a comment.
Features
Batch import PBR materials from texture sets
Add real displacement to materials upon import
Add fake user to materials upon import
Skip materials that already exist
Import with UV or object mapping
Add extra utility nodes
Filter textures by string (dont load if contains x)
Batch import models of various filetypes (fbx, gltf, obj, x3d)
Hide imported models straight after import
Batch append objects/materials from multiple .blend files at once
Search for .blend files to append from in subdirs recursively
Dont append lights option
Dont append cameras option
Batch download CC0 assets from ambientcg.com via a python script
Added support for running ALT_CC0AssetDownloader.py from blender via gnome-terminal as well as cmd.
Made some minor code improvements to __init__.py and ALT_CC0AssetDownloader.py.
Asset browser memory usage problem:
See https://developer.blender.org/T89038 for some info about the high memory usage I mentioned in the main post. Hopefully the memory usage from thumbnail generation wont be so high some time soon.
Some very minor changes, main change is making it so the ALT_CC0AssetDownloader.py script will install the requests module via pip and retry if importing the module fails.
Otherwise just renaming variables and stuff like that.
Added a bunch of stuff in this update!
Thanks to smile#9766 for suggestions, and Johnny Matthews for the base asset snapshot code.
Added batch append from .blend files. Currently you can import objects or materials, with a few settings to control it.
Added “Asset snapshot” into assetlibrarytools. Asset snapshot is its own standalone addon, which someone suggested I should include in assetlibrarytools, so I made some additions to the standalone addon, and then put the code into assetlibrarytools.
See this video on asset snapshot for some more info (that video is now a bit outdated, but still reasonably accurate)
Added “Clean up duplicate materials (simple)” to the utilities panel, this removes duplicate materials based on their name (the .000 at the end of a duplicate material name for example) and sets any material slots it removed materials from to the original material.
Also added “change displacement scale on all materials” to the utilities, which can be handy.
Made it possible to use all ambientcg download attributes (still some room for improvement due to these values being hard-coded, instead of downloaded)
Hi
Very impressive work and very useful. Thank you for that.
I’ve got an error with the asset snapshot utilities. I know you’re not the primary developper but maybe you can help me anyway.
When I click Asset Snapshot (Object or Collection), my 3D View space changes to File Browser and I get this traceback message
Ive recently updated the the code for the snapshot part of assetlibrarytools so its up to date with the main addons code, heres the most up to date zip file: AssetLibraryTools.zip (23.9 KB)
If I delete my startup.blend file from my config folder, there is no issue. Maybe I’m missing something here but I can’t figure what. My startup file has no specific configuration …