2

When marking assets by python api, the icon does not show properly in the asset browser can not see the thumbnail. But I can mark the asset.

       obj = bpy.data.objects["dishwasher1"]  
       obj.asset_clear()
       obj.asset_mark()

Any one can help on this?

Derekcbr
  • 99
  • 1
  • 8
  • Not a duplicate per se but I suggest you also read through this thread https://blender.stackexchange.com/q/274982/86891 – Gorgious Sep 21 '22 at 08:40

1 Answers1

4

Let's have a look at what Python Console suggests with autocomplete:

enter image description here

object.asset_generate_preview() looks interesting.

Martynas Žiemys
  • 24,274
  • 2
  • 34
  • 77