@julianeisel Had a question about the asset manager. I’d like to be able to add an asset using a button. I found the bpy.ops.object.collection_external_asset_drop operator, but, the python API docs don’t really help much in understanding how to use it.
There are some arguments that are puzzling, I’ve dropped a few assets and seen this operator reported as being run after a drag ‘n’ drop of an asset, here’s what I saw;
- The session_uuid argument is set to an integer, which is unrelated to any property of the datablocks themselves. I checked the datablocks of the dropped assets to see if there was a ‘session_uuid’ property, but couldn’t find one.
- The ‘collection’ argument is completely opaque to me, all the docs say is;
collection (enum in [ ] , ( optional )) – Collection. It doesn’t appear to be used according to the reports I see after doing a drag ‘n’ drop, I am not sure if its needed, would help to know what its supposed to be used for.
Basically, I’d really like to know how or even if I can use this op as a button to add an the currently active asset to the scene. I’m not sure how to do this using this operator, of if there’s a better way, I’d love to hear about it!
Help would be much appreciated!