Hi,
Using Blender 4.3.2, I would like to select multiple objects in my blender scene, and have them individually translated to (0;0;0), set their origin according to their surface (bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS', center='MEDIAN')) and individually export them as GLBs.
How to code this ? I use Blender maybe twice a year during 5 min, and cannot keep up with the APIs changes, sorry guys
The simplest way would be just to do the steps in UI and then just list all operators you used from UI in your script. You can get operators names either from Info window in Scripting tab or from Python tooltips when hovering over buttons (make sure it’s enabled in Blender settings).