4 from setuptools import setup
11 short_description='pure python 3d model io library'
13 `pymeshio` is a package for 3d model io.
14 create for blender import/expoert plugin backend.
23 * read/write Metasequioa mqo format
24 * read/write MikuMikuDance pmd format
25 * read-only MikuMikuDance pmx format
26 * read/write MikuMikuDance vmd format
27 * read/write MikuMikuDance vpd format
34 $ easy_install pymeshio
36 $ unzip pymeshio-x.x.x.zip
38 $ python setup.py install
44 >>> import pymeshio.pmx.loader
45 >>> m=pymeshio.pmx.loader.load('resources/初音ミクVer2.pmx')
47 <pmx-2.0 "Miku Hatsune" 12354vertices>
49 ['__class__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', 'bones', 'comment', 'display_slots', 'english_comment', 'english_name', 'indices', 'joints', 'materials', 'morphs', 'name', 'rigidbodies', 'textures', 'version', 'vertices']
55 * pmd to pmx converter
56 * blender importer for pmx
57 * blender exporter for pmx
64 * fix for Python 2.7(remove anotation)
65 * fix pymeshio.pmx.Bdef1.bone_index to index0
66 * fix pymeshio.pmx.Material.index_count to vertex_count
75 * add tkinter viewer sample
83 'Programming Language :: Python :: 3',
84 'License :: OSI Approved :: zlib/libpng License',
85 'Topic :: Multimedia :: Graphics :: 3D Modeling',
88 # copy pymeshio dir for blender25 plugin
89 PYMESHIO_DIR_IN_BLENDER='blender25-meshio/pymeshio'
90 if os.path.exists(PYMESHIO_DIR_IN_BLENDER):
91 shutil.rmtree(PYMESHIO_DIR_IN_BLENDER)
92 print("copy pymeshio to blender-25")
93 shutil.copytree('pymeshio', PYMESHIO_DIR_IN_BLENDER)
98 description=short_description,
99 long_description=long_description,
100 classifiers=classifiers,
101 keywords=['mqo', 'pmd', 'pmx', 'vmd', 'vpd', 'mmd', 'blender'],
103 author_email='ousttrue@gmail.com',
104 url='http://meshio.sourceforge.jp/',
107 # 'pymeshio': 'blender25-meshio/pymeshio'
109 packages=['pymeshio'],
110 test_suite='nose.collector',
111 tests_require=['Nose'],
112 zip_safe = (sys.version>="2.5"), # <2.5 needs unzipped for -m to work