I am working on automating the process of creating asset libraries with python. I can mark an asset with python by using:
bpy.data.objects[‘my_object’].asset_mark()
bpy.data.objects[‘my_object’].asset_generate_preview()
but in some instances I want to load a custom preview. The only way I know how to add a custom preview is by using:
bpy.ops.ed.lib_id_load_custom_preview()
As far as I know this can only be called from the interface and not python. Does anyone know how to load a custom preview for an asset with python?