From 438e332c36698e3f97524853c4f950ab50f87cde Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Mon, 22 Jul 2024 01:31:00 -0700 Subject: [PATCH] The default `filepath` is now based on the name of the active object --- io_scene_ase/exporter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io_scene_ase/exporter.py b/io_scene_ase/exporter.py index c230df5..5d54def 100644 --- a/io_scene_ase/exporter.py +++ b/io_scene_ase/exporter.py @@ -134,6 +134,8 @@ class ASE_OT_export(Operator, ExportHelper): pg = getattr(context.scene, 'ase_export') populate_material_list(mesh_objects, pg.material_list) + self.filepath = f'{context.active_object.name}.ase' + context.window_manager.fileselect_add(self) return {'RUNNING_MODAL'}