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

Module reader

source code

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

read_from_file(path)

source code 

read from file path, then return the pymeshio.pmd.Model.

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

read(ios)

source code 

read from ios, then return the pymeshio.pmd.Model.

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