OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactoring export_pmd
[meshio/pymeshio.git]
/
blender26-meshio
/
export_pmx.py
diff --git
a/blender26-meshio/export_pmx.py
b/blender26-meshio/export_pmx.py
index
3f10bac
..
1f6b165
100644
(file)
--- a/
blender26-meshio/export_pmx.py
+++ b/
blender26-meshio/export_pmx.py
@@
-1,6
+1,18
@@
# coding: utf-8
# coding: utf-8
+from . import bl
+
+
def _execute(filepath):
print(filepath)
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'}
return {'FINISHED'}