Giter Club home page Giter Club logo

bulkasset's Introduction

Bulk Asset Tools

This adds the ability to perform actions on multiple assets at the same time whether they are in the same file or not.

Features on the Main Channel

On the local or external files:

Select Assets in the Asset Browser and Right Click

  • Move to Catalog / Unassign
  • Set Author
  • Set Description
  • Add/Remove/Copy Tags
  • Rename Assets
  • Clear Assets
  • Allow Multithreading

This is a free addon! If you want to download the release version, you can grab it from my Gumroad: https://johnnygizmo.gumroad.com/l/bulk-asset-tools

If you want to support development, join my Patreon @ https://www.patreon.com/johnnymatthews

Be aware that when you select multiple assets from different files, each of those files will be loaded, modified and saved in the background. So, this can take a while and it may seem like Blender is frozen. JUST WAIT it will get there eventually. I'm trying to find a good way to show progress

Current Master (1.7.3)

Works in new Blender 4.2 extension library Fix errors on exit

Release History

1.4 New Features

Add Copyright and License Options

1.2 New Features

Add Options to Context Menu Remove Tags gives drop down of tags on selected assets Copy Tag Option Clear Asset Option Code Cleanup Add Multithreading

V1.1 - Current Release

  • Add/Remove Tags

V1.0

  • Initial Release

bulkasset's People

Contributors

johnnygizmo avatar johnny-matthews-egeo avatar

Stargazers

Mike  avatar Lahcéne Belbachir avatar  avatar  avatar WXZ avatar NewTypo avatar Maiev avatar Aditia A. Pratama avatar  avatar  avatar Mel Massadian avatar

Watchers

 avatar  avatar

Forkers

melmass

bulkasset's Issues

Bulk Asset Mover Does not do anything!

Hi, I have been trying use the Add on, however It is not working at all!
Screenshot 2024-06-10 at 11 51 37 AM
Screenshot 2024-06-10 at 11 51 49 AM

I have here a before clicking the ok button, and a picture after the process finishes. It still is not moved!

Installed Add-on will not Enable

Hello,
I was attempting to try your add-on using Blender 3.5 on Windows 11.
In Blender:
Edit > Preferences > Add-ons > Install... , chose "BulkAsset1.5.zip"
"Check" Assets > Bulk Asset Tool and I receive the following error:

Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\modules\addon_utils.py", line 369, in enable mod.register() File "C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BulkAsset\__init__.py", line 59, in register bpy.types.ASSETBROWSER_MT_asset.append(header_menu_func) AttributeError: 'module' object has no attribute 'ASSETBROWSER_MT_asset'

Therefore I was unable to install the add-on.
I also tried running Blender as an administrator, but that did not work either.
Is this a bug, or am I doing something wrong?

Thanks,
Davexx

Error when exiting blender

Exiting raises an error with blender 05617ed07d2bc33102e3f47fd0c11395e56b3972.

The exception is:

Traceback (most recent call last):                                                                                                             
  File "/src/cmake_debug/bin/4.2/scripts/modules/addon_utils.py", line 511, in disable                                                         
    mod.unregister()                                                                                                                           
  File "/home/ideasman42/.config/blender/4.2/extensions/blender_org/bulk_asset_tools/__init__.py", line 80, in unregister                      
    bpy.types.ASSETBROWSER_MT_asset.remove(header_menu_func)                                                                                   
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                            
AttributeError: 'module' object has no attribute 'ASSETBROWSER_MT_asset'        

我帮您解决了一个bug,请求更新到你的代码中

There is a repair request regarding the solution to displaying garbled non English directory paths:
I have written the code for you: just replace the original fragment in utilities.py:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.