X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=blender26-meshio%2Fexport_pmx.py;h=1f6b165385adc416caaf4ddc952e82f709a02587;hb=924bae1667aea0f57dd3de11b1248c12bc9a95d1;hp=3f10bac18fb34f6fbb2602df286b2f3c08f8ab11;hpb=9670a6351829f9a08b58d9a11703667fd45afdc5;p=meshio%2Fpymeshio.git diff --git a/blender26-meshio/export_pmx.py b/blender26-meshio/export_pmx.py index 3f10bac..1f6b165 100644 --- a/blender26-meshio/export_pmx.py +++ b/blender26-meshio/export_pmx.py @@ -1,6 +1,18 @@ # coding: utf-8 +from . import bl + + def _execute(filepath): print(filepath) + active=bl.object.getActive() + if not active: + print("abort. no active object.") + return + exporter=PmdExporter() + exporter.setup() + print(exporter) + exporter.write(filepath) + bl.object.activate(active) return {'FINISHED'}