i want to batch mark a bunch of materials as assets using python. right now the only process i can see is done though bpy.ops.asset.mark() operator in the outliner on a clicked material data block. i can automate the operator to run in outliner via a custom context, but i can’t figure out how to get it to target a specific material data block.
is this just too early days of asset browser to consider automation?
I added options to mark Assets in all blend file that is contained in a specified Asset library.
This will run each blend file from the command line and mark the assets so please be aware that there is potential danger.
there are some issues i noticed:
if you add a new Asset Library you need to do a Script reload to get it to show for processing.
The thumbnails are missing somehow and will need some investigation.