Package pymeshio :: Package pmx :: Module reader
[hide private]
[frames] | no frames]

Module reader

source code

pmx reader
Classes [hide private]
  Reader
pmx reader
Functions [hide private]
 
read_from_file(path)
read from file path, then return the pmx.Model.
source code
 
read(ios)
read from ios, then return the pmx pmx.Model.
source code
Variables [hide private]
  __package__ = 'pymeshio.pmx'
Function Details [hide private]

read_from_file(path)

source code 

read from file path, then return the pmx.Model.

>>> import pmx.reader
>>> m=pmx.reader.read_from_file('resources/初音ミクVer2.pmx')
>>> print(m)
<pmx-2.0 "Miku Hatsune" 12354vertices>
Parameters:
  • path - file path

read(ios)

source code 

read from ios, then return the pmx pmx.Model.

>>> import pmx.reader
>>> m=pmx.reader.read(io.open('resources/初音ミクVer2.pmx', 'rb'))
>>> print(m)
<pmx-2.0 "Miku Hatsune" 12354vertices>
Parameters:
  • ios - input stream (in io.IOBase)