Add new feature Asset Browser

Issue #905 resolved
Brehiner Moreno Zúñiga created an issue

There is no doubt this addon is amazing but I think this could be better if you upgrade with new features of Blender as asset browser and geometry nodes. For example in posing section you have a button to bring the pose library from daz to blender but this goes to the pose library and is a little complicated send these to asset browser, so I think you could create a new button to importe these poses directly to the asset browser with their name and thumbnails.

Comments (8)

  1. Alessandro Padovani

    imho

    The addon is supposed to be compatible with blender 2.9 I guess that’s why the asset browser is not used. Furthermore the asset browser is new and in heavy development so it may not be wise to base features on it yet.

  2. Uwe Schmidt

    It’s easy to change the “Import Library” feature to the Asset Library, though.

    I commented out bpy.ops.poselib.pose_add(frame=frame) and the next two lines in animation.py / addToPoseLib() and replaced it with

        bpy.ops.poselib.create_pose_asset(pose_name=name, activate_new_action=True)
        name = bpy.context.object.animation_data.action.name
        bpy.data.actions[name].asset_generate_preview()
    

    Works for me, make sure your camera settings are correct if you want to have usable Thumbnails.

  3. Uwe Schmidt

    By the way, don’t convert old poselibs. This feature is broken, the converted poses can scale arms and legs and can change the root position.

  4. Thomas Larsson repo owner

    Pose assets can now be created, but the created previews don’t show anything for me. And I haven’t figured out how to deal with catalogs. But it is a first step.

  5. Uwe Schmidt

    You have to make sure that your camera view is right. Previews are done with the current camera, not your viewport.

    I have a special scene with a green colored G8F and a dark background, just for importing DAZ libraries. With this setup, I get good previews.

    I haven’t touched the catalogs with python yet, but I will have a look into that.

  6. Uwe Schmidt

    A lot of stuff can be found here:

    https://github.com/Gorgious56/asset_browser_utilities

    Loading a custom preview images is described here:

    https://blender.stackexchange.com/questions/245397/batch-assign-pre-existing-image-files-as-asset-previews

    Tags, author and descriptions are simple, as is assigning to an exiting catalog.

    bpy.data.actions['01a - Blue'].id_data.asset_data.tags.new("First_Tag")
    bpy.data.actions['01a - Blue'].id_data.asset_data.tags.new("Second_Tag")
    bpy.data.actions['01a - Blue'].id_data.asset_data.author='DAZ AUTHOR'
    bpy.data.actions['01a - Blue'].id_data.asset_data.description='Some Text'
    bpy.data.actions['01a - Blue'].id_data.asset_data.catalog_id='00000000-0000-0000-0000-000000000000'

    The utilities in the first link can handle catalogs,

  7. Log in to comment