OSDN Git Service

add blender26-meshio
[meshio/pymeshio.git] / blender26-meshio / import_pmx.py
1 # coding: utf-8
2
3 def load(operator, context, filepath, **kw):
4     print(filepath)
5     print(kw)
6
7     from .pymeshio.pmx import reader
8     model=reader.read_from_file(filepath)
9     if not model:
10         print("fail to load %s" % filepath)
11         return
12     print(model)
13
14     return {'FINISHED'}
15