Bulk Asset Tools add options in the Asset Browser to allow editing the data of multiple assets at the same time, even if they do not exist in the same file. Add metadata, tags, etc. Move them between asset categories too.
Fix error on exit.
This extension requests the following permission:
Add-on expects to have access to filesytem.
There is a repair request regarding the solution to displaying garbled non English directory paths: I have written the code for you: just: 有一个修复请求,关于非英文目录路径显示为乱码的解决方案 : 代码我帮您写好了:只需要:
def tag_callback(self, context): global items1 items1 = []
items1.clear()
tags = {}
for f in bpy.context.selected_assets:
for tag in f.metadata.tags:
tags[tag.name] = True
output = []
i = 0
for tag in tags.keys():
output.append((tag, tag, "", i))
i += 1
items1 = output
return items1
def item_callback(self, context):
global items
items = []
items.clear()
output = [("", "Catalog", "", 0),
("00000000-0000-0000-0000-000000000000", "Unassigned", "", 0)]
if bpy.context.space_data.params.asset_library_reference == "ALL":
return [("", "Select a catalog other than 'All'", "", 0)]
directory = context.space_data.params.directory
d = str(directory).split('\'')
directory = d[1]
cat = open(os.path.join(str(directory), "blender_assets.cats.txt"))
cats = cat.readlines()
cat.close()
i = 1
for line in cats:
if line[0:1] == "#":
continue
if line.strip() == "":
continue
if line[0:7] == "VERSION":
continue
data = line.split(":")
output.append((data[0], data[1], "", i))
i += 1
# print('output:_yn_:',output)
items=output
return items