• R/O
  • HTTP
  • SSH
  • HTTPS

pymeshio: Commit

pmdとmqoの入出力ライブラリと、それを使ったBlender2.5向けのaddon。


Commit MetaInfo

Revision9975f6dd72c622e6fb513e054d948055b255c4e3 (tree)
Time2011-10-10 22:03:17
Authorousttrue <ousttrue@gmai...>
Commiterousttrue

Log Message

add converter script

Change Summary

Incremental Difference

--- /dev/null
+++ b/pymeshio/main.py
@@ -0,0 +1,21 @@
1+# coding: utf-8
2+"""
3+"""
4+
5+
6+import sys
7+import os
8+import io
9+from .pmd import reader
10+from .pmx import writer
11+from . import converter
12+
13+
14+def pmd_to_pmx():
15+ if len(sys.argv)<3:
16+ print("usage: %s {input pmd_file} {out pmx_file}" % os.path.basename(sys.argv[0]))
17+ sys.exit()
18+ pmd=reader.read_from_file(sys.argv[1])
19+ pmx=converter.pmd_to_pmx(pmd)
20+ writer.write(io.open(sys.argv[2], "wb"), pmx)
21+
Show on old repository browser