Unable to drag library assets to catalogs, when in their current file #93650

Closed
opened 2021-12-04 13:30:02 +01:00 by Dan McLaughlin · 30 comments

System Information
Operating system: Win10
Graphics card: 3090

Blender Version
Broken: 3.0
Worked: N/A

Short description of error

Dragging a library asset from it's current file gives the error shown, arrows point to evidence we are in the current file

Screenshot 2021-12-04 042607.png

Exact steps for others to reproduce the error
SphereSculpt.blend

  • Use Industry Compatible keymap
  • Open file

Drag the sphere into a catalog as shown

This can be reproduced even with default startup file.

**System Information** Operating system: Win10 Graphics card: 3090 **Blender Version** Broken: 3.0 Worked: N/A **Short description of error** Dragging a library asset from it's current file gives the error shown, arrows point to evidence we are in the current file ![Screenshot 2021-12-04 042607.png](https://archive.blender.org/developer/F12689024/Screenshot_2021-12-04_042607.png) **Exact steps for others to reproduce the error** [SphereSculpt.blend](https://archive.blender.org/developer/F12689027/SphereSculpt.blend) - Use Industry Compatible keymap - Open file # Drag the sphere into a catalog as shown This can be reproduced even with default startup file.
Author

Added subscriber: @DrMc

Added subscriber: @DrMc

Added subscriber: @antoine.grasset

Added subscriber: @antoine.grasset

I can't reproduce on MacOS 12.0.1 / MacBookAir M1 / Blender 3.0.0 ARM version (2021-12-02 f1cca30557).

What Blender version/build are you using ?
Maybe I'm missing a step ? Check my video hereafter to confirm.
T93650_cant_reproduce.mp4

I can't reproduce on MacOS 12.0.1 / MacBookAir M1 / Blender 3.0.0 ARM version (2021-12-02 f1cca3055776). What Blender version/build are you using ? Maybe I'm missing a step ? Check my video hereafter to confirm. [T93650_cant_reproduce.mp4](https://archive.blender.org/developer/F12689157/T93650_cant_reproduce.mp4)
Author

Hi Tony,
3.0.0 as indicated. It's happened to several of my files consistently, mainly ones I set as assets myself previously. I got a bunch of 3rd party assets just fine. Clearing and resetting the asset tag doesn't fix it. Clearly fine for you, maybe a Windows issue? Wouldn't expect that but try to reproduce on Win10 before we dig into it.

Hi Tony, 3.0.0 as indicated. It's happened to several of my files consistently, mainly ones I set as assets myself previously. I got a bunch of 3rd party assets just fine. Clearing and resetting the asset tag doesn't fix it. Clearly fine for you, maybe a Windows issue? Wouldn't expect that but try to reproduce on Win10 before we dig into it.
Author

@antoine.grasset OK something which is probably important that I left out. The definitions of the catalog are in a different file. I keep a master "Catalogs.blend" which contains all the catalog definitions, those were defined in the Library.blend, and I'm trying to use them from this file above. Does that help?

Library.blend
blender_assets.cats.txt

@antoine.grasset OK something which is probably important that I left out. The definitions of the catalog are in a *different* file. I keep a master "Catalogs.blend" which contains all the catalog definitions, those were defined in the Library.blend, and I'm trying to use them from this file above. Does that help? [Library.blend](https://archive.blender.org/developer/F12706429/Library.blend) [blender_assets.cats.txt](https://archive.blender.org/developer/F12706426/blender_assets.cats.txt)
Author

Also - I'm trying to move the asset, which is in the User Library directory, to a catalog. None of this is in this file - it's all in the user library.

Also - I'm trying to move the asset, which is in the User Library directory, to a catalog. None of this is in this file - it's all in the user library.
Author

@antoine.grasset More information, I found that if I fiddled around enough with the settings it would suddenly start working. In one case, just pulling the "Current File" drop down and selecting Current File did it. This time it took a lot more fiddling, but here's proof of the issue that I captured on video. On all the assets which are problematic I'm finding that with enough random fiddling eventually it'll work

2021-12-08 04-41-57.mkv

@antoine.grasset More information, I found that if I fiddled around enough with the settings it would suddenly start working. In one case, just pulling the "Current File" drop down and selecting Current File did it. This time it took a lot more fiddling, but here's proof of the issue that I captured on video. On all the assets which are problematic I'm finding that with enough random fiddling eventually it'll work [2021-12-08 04-41-57.mkv](https://archive.blender.org/developer/F12710685/2021-12-08_04-41-57.mkv)
Author

Another example (quicker). Also shows it

  • Not working
  • Working
  • Not working again (more fiddling)
  • Working and I finish

ignore the audio, SpaceX video playing in the background :)

2021-12-08 04-50-15.mkv

Another example (quicker). Also shows it - Not working - Working - Not working again (more fiddling) - Working and I finish ignore the audio, SpaceX video playing in the background :) [2021-12-08 04-50-15.mkv](https://archive.blender.org/developer/F12710719/2021-12-08_04-50-15.mkv)

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

@DrMc Can you explain what are you trying to do? I understand it as you want to move asset to catalog within different .blend file, but this is impossible, asset catalog are read only unless you are editing them directly.

@DrMc Can you explain what are you trying to do? I understand it as you want to move asset to catalog within different .blend file, but this is impossible, asset catalog are read only unless you are editing them directly.
Author

https://docs.blender.org/manual/en/dev/files/asset_libraries/catalogs.html

Blender 3.0 supports a single CDF per asset library. It is stored in blender_assets.cats.txt in the root directory of the asset library.

My library, set in preferences, is this
image.png

There is one master blender_assets.cats.txt as per the documentation. All the individual blend asset files are in the directories shown, the catalogs are all defined within Library.blend as shown. This is so there is one master 'category list'. This way I can guarantee there's no redundance, e.g. "Nodes" and "Node" catalogs that might happen by accident if there were library's all around.

I understand it as you want to move asset to catalog within different .blend file, but this is impossible, asset catalog are read only unless you are editing them directly.

It's not impossible, with the fiddling I show above it will allow me to do it, you can see that behavior in the video. So there's an issue here somewhere.

But I'm not following you exactly, There will be one cat file in the root. Let's say in one file I have a catalog "Meshes". Then in another file I create a catalog "Meshes/Pink". Then in the third file I want to also put something into "Meshes/Pink", are you saying I can't do that? Ignoring that you can do it as mentioned with fiddling, that's means that catalogs can only be used in a very restrictive sense on a per file basis. Using them the way I do here, such as "Nodes" (all meshes with geometry nodes to be reused) must be a common use case.

https://docs.blender.org/manual/en/dev/files/asset_libraries/catalogs.html > Blender 3.0 supports a single CDF per asset library. It is stored in blender_assets.cats.txt in the root directory of the asset library. My library, set in preferences, is this ![image.png](https://archive.blender.org/developer/F12846526/image.png) There is one master blender_assets.cats.txt as per the documentation. All the individual blend asset files are in the directories shown, the catalogs are all defined within Library.blend as shown. This is so there is one master 'category list'. This way I can guarantee there's no redundance, e.g. "Nodes" and "Node" catalogs that might happen by accident if there were library's all around. > I understand it as you want to move asset to catalog within different .blend file, but this is impossible, asset catalog are read only unless you are editing them directly. It's not impossible, with the fiddling I show above it will allow me to do it, you can see that behavior in the video. So there's an issue here somewhere. But I'm not following you exactly, There will be one cat file in the root. Let's say in one file I have a catalog "Meshes". Then in another file I create a catalog "Meshes/Pink". Then in the third file I want to also put something into "Meshes/Pink", are you saying I can't do that? Ignoring that you can do it as mentioned with fiddling, that's means that catalogs can only be used in a very restrictive sense on a per file basis. Using them the way I do here, such as "Nodes" (all meshes with geometry nodes to be reused) must be a common use case.

Sorry I meant .blend files that hold the asset are read only unless you edit them. You should be able to add items to catalogs.

Perhaps this part is important in https://docs.blender.org/manual/en/dev/files/asset_libraries/introduction.html#creating-an-asset
After creating the asset, make sure the current blend-file is saved in your asset library. Blender does not copy the asset into the asset library for you.

If you want to just move asset to catalog, I want to know how exactly you want to do that, so I can follow the process here. It could be case, that what you show in video was a bug, but I can't tell really

Sorry I meant .blend files that hold the asset are read only unless you edit them. You should be able to add items to catalogs. Perhaps this part is important in https://docs.blender.org/manual/en/dev/files/asset_libraries/introduction.html#creating-an-asset `After creating the asset, make sure the current blend-file is saved in your asset library. Blender does not copy the asset into the asset library for you.` If you want to just move asset to catalog, I want to know how exactly you want to do that, so I can follow the process here. It could be case, that what you show in video was a bug, but I can't tell really
Author

I meant .blend files that hold the asset are read only unless you edit them.

Correct

Perhaps this part is important ...

Yes the file is saved to the asset library hierarchy. Here is an example of the workflow, it's really simple

  • You can see where the asset library is in prefs (D:\Masters\Library\Blender)
  • New instance of Blender, save to asset catalog
  • Tag an asset, save file
  • Can't move the asset to a catalog

I'm suspecting it's something to do with how I'm using it. This was driven from the Studio as I understand it, with the use case that they have lots and lots of blend file where they want to reuse poses and such from one to another, just for that production. Very flexible, you can create a new catalog from any file and somehow it all works together.

My use case is one 'master' library with commonly used assets across all projects. I have one master Catalog blend file where all the catalogs are created (the "Library.blend" file above). I don't create catalogs in sub files, but I obviously want to use the catalogs and place assets in them from where ever.

Does that give a clue? To be clear, can you place an asset from this blend, into a catalog created in another blend? I think so because it seems that making a catalog just writes a line in the master catalog file on top. But I'm not sure as it seems there's some text in the docs about having multiple "blender_assets.cats.txt"

2022-02-05 05-18-54.mkv

> I meant .blend files that hold the asset are read only unless you edit them. Correct > Perhaps this part is important ... Yes the file is saved to the asset library hierarchy. Here is an example of the workflow, it's really simple - You can see where the asset library is in prefs (D:\Masters\Library\Blender) - New instance of Blender, save to asset catalog - Tag an asset, save file - Can't move the asset to a catalog I'm suspecting it's something to do with how I'm using it. This was driven from the Studio as I understand it, with the use case that they have lots and lots of blend file where they want to reuse poses and such from one to another, just for that production. Very flexible, you can create a new catalog from any file and somehow it all works together. My use case is one 'master' library with commonly used assets across all projects. I have *one master Catalog blend file where all the catalogs are created* (the "Library.blend" file above). I don't create catalogs in sub files, but I obviously want to use the catalogs and place assets in them from where ever. Does that give a clue? To be clear, can you place an asset from this blend, into a catalog created in another blend? I think so because it seems that making a catalog just writes a line in the master catalog file on top. But I'm not sure as it seems there's some text in the docs about having multiple "blender_assets.cats.txt" [2022-02-05 05-18-54.mkv](https://archive.blender.org/developer/F12848363/2022-02-05_05-18-54.mkv)
Author

@iss OK I think I found the issue specifically, the issue is with the Blender selection in this editor.

There's something odd about the Asset Browser editor and selection, I keep grabbing things and it thinks I'm doing some kind of box select. The reason is if you click-drag in one operation it will drag, but it's not really in drag mode but in an indeterminate or a box select mode, this is what it looks like
image.png

If instead you click-unclick, now the item is fully selected, now you can drag properly
image.png

So the issue is that it lets you do a click-drag (no click up) and drag, but it isn't really in drag mode. You have to do a two step operation, click-unclick, item is fully selected, now drag. Basically the editor has the box select operation by default, but it really should be the tweak operator and you select multiples with shift. At that's the way most such 'element selector' interfaces act.

Make sense?

@iss OK I think I found the issue specifically, the issue is with the Blender selection in this editor. There's something odd about the Asset Browser editor and selection, I keep grabbing things and it thinks I'm doing some kind of box select. The reason is if you click-drag in one operation it will drag, but it's not really in drag mode but in an indeterminate or a box select mode, this is what it looks like ![image.png](https://archive.blender.org/developer/F12863948/image.png) If instead you click-unclick, now the item is fully selected, now you can drag properly ![image.png](https://archive.blender.org/developer/F12863951/image.png) So the issue is that it lets you do a click-drag (no click up) and drag, but it isn't really in drag mode. You have to do a two step operation, click-unclick, item is fully selected, now drag. Basically the editor has the box select operation by default, but it really should be the tweak operator and you select multiples with shift. At that's the way most such 'element selector' interfaces act. Make sense?

I understand what you mean, but I can't reproduce this behavior. Can you check alpha build from https://builder.blender.org/download/daily/? Also are you using mouse to drag asset? I think that even touchpads could cause issues sometimes.

I understand what you mean, but I can't reproduce this behavior. Can you check alpha build from https://builder.blender.org/download/daily/? Also are you using mouse to drag asset? I think that even touchpads could cause issues sometimes.
Author

Yes it still exists in 3.1

Are you sure you understand how this is happening? See the attached video because I can now easily reproduce it or do it correctly. The first time I'm just swiping by and click when over the asset, which results in a drag operation even though the asset isn't fully selected. So I can't assign it to a catalog

The second time I properly select the asset, it highlights, then I can drag it.

The issue appears to be that Blender has some kind of partial selection mode on Assets which allow you to move an asset, except it doesn't work properly.

2022-03-11 04-41-50.mkv

Yes it still exists in 3.1 Are you sure you understand how this is happening? See the attached video because I can now easily reproduce it or do it correctly. The first time I'm just swiping by and click when over the asset, which results in a drag operation even though the asset isn't fully selected. So I can't assign it to a catalog The second time I properly select the asset, it highlights, then I can drag it. The issue appears to be that Blender has some kind of partial selection mode on Assets which allow you to move an asset, except it doesn't work properly. [2022-03-11 04-41-50.mkv](https://archive.blender.org/developer/F12921311/2022-03-11_04-41-50.mkv)

I really can't reproduce this issue. Perhaps this could happen if you have more than 1 monitor and/or system uses scaling for display (check screen settings in OS settings).
2022-03-14 20-47-59.mp4

I really can't reproduce this issue. Perhaps this could happen if you have more than 1 monitor and/or system uses scaling for display (check screen settings in OS settings). [2022-03-14 20-47-59.mp4](https://archive.blender.org/developer/F12927736/2022-03-14_20-47-59.mp4)
Author

OK I've got it I believe, I'm using Industry standard keymap, trying it with the Blender keymap I get the same results as you.

I looked in there to see if there was anything special in the Industry Standard but it doesn't seem like this editor has settings, but I'm probably not seeing it.

OK I've got it I believe, I'm using Industry standard keymap, trying it with the Blender keymap I get the same results as you. I looked in there to see if there was anything special in the Industry Standard but it doesn't seem like this editor has settings, but I'm probably not seeing it.

Asset browser probably uses same keymap as file browser, so there could be difference.

I can confirm with industry compatible keymap though. Thanks for clarifying.

Asset browser probably uses same keymap as file browser, so there could be difference. I can confirm with industry compatible keymap though. Thanks for clarifying.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Author

Is this the same as, or related to this?

File Browser UI: Allow dragging anywhere in a file preview tile to drag

https://developer.blender.org/rB6e487228a595

Is this the same as, or related to this? File Browser UI: Allow dragging anywhere in a file preview tile to drag https://developer.blender.org/rB6e487228a595
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

@DrMc is this still an issue with latest builds, after the change you mentioned?

@DrMc is this still an issue with latest builds, after the change you mentioned?
Member

Just as a note:

I keep a master "Catalogs.blend" which contains all the catalog definitions, those were defined in the Library.blend, and I'm trying to use them from this file above.

Catalogs aren't defined in .blend files, they are defined in the blender_assets.cats.txt files in the asset library. If the current file is stored inside of a registered asset library, Blender loads the asset catalog definitions from there. So the catalog definitions are really independent of .blend files.

Just as a note: > I keep a master "Catalogs.blend" which contains all the catalog definitions, those were defined in the Library.blend, and I'm trying to use them from this file above. Catalogs aren't defined in .blend files, they are defined in the `blender_assets.cats.txt` files in the asset library. If the current file is stored inside of a registered asset library, Blender loads the asset catalog definitions from there. So the catalog definitions are really independent of .blend files.
Author

Hi @JulianEisel , yes the beta 3.2 from last night still has the issue unfortunately.

Hi @JulianEisel , yes the beta 3.2 from last night still has the issue unfortunately.
Author

In #93650#1363124, @JulianEisel wrote:
Just as a note:

I keep a master "Catalogs.blend" which contains all the catalog definitions, those were defined in the Library.blend, and I'm trying to use them from this file above.

Catalogs aren't defined in .blend files, they are defined in the blender_assets.cats.txt files in the asset library. If the current file is stored inside of a registered asset library, Blender loads the asset catalog definitions from there. So the catalog definitions are really independent of .blend files.

Thanks I figured that out, and now work with catalogs from various files. Or used to, we use Perforce which uses the read only bit on files, and check in a library to the repo to share. Somewhere along there it's gotten upset, and now I can't add new catalog categories, they won't save (the blender_assets_cats.txt is checked out). I have to manually generate a GUID and put a new category into the txt file. I haven't submitted a bug on this, I'm not sure how to reproduce it.

> In #93650#1363124, @JulianEisel wrote: > Just as a note: >> I keep a master "Catalogs.blend" which contains all the catalog definitions, those were defined in the Library.blend, and I'm trying to use them from this file above. > Catalogs aren't defined in .blend files, they are defined in the `blender_assets.cats.txt` files in the asset library. If the current file is stored inside of a registered asset library, Blender loads the asset catalog definitions from there. So the catalog definitions are really independent of .blend files. Thanks I figured that out, and now work with catalogs from various files. Or used to, we use Perforce which uses the read only bit on files, and check in a library to the repo to share. Somewhere along there it's gotten upset, and now I can't add new catalog categories, they won't save (the blender_assets_cats.txt is checked out). I have to manually generate a GUID and put a new category into the txt file. I haven't submitted a bug on this, I'm not sure how to reproduce it.

This issue was referenced by 36f5967b99

This issue was referenced by 36f5967b9998fcb28829091608db504de166dd5b
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julian Eisel self-assigned this 2022-06-27 15:36:47 +02:00
Author

Thanks @JulianEisel! Small thing but a nice easy fix.

Thanks @JulianEisel! Small thing but a nice easy fix.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#93650
No description provided.