Skip to content

ScanMountGoat/sm4sh_model_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sm4sh_model_py

Python bindings to sm4sh_model for high level and efficient data access to model files for Smash 4 for Wii U.

Installation

The compiled extension module can be imported just like any other Python file. On Windows, rename sm4sh_model_py.dll to sm4sh_model_py.pyd. If importing sm4sh_model_py fails, make sure the import path is specified correctly and the current Python version matches the version used when building. For installing in the current Python environment, install maturin and use maturin develop --release.

Building

Build the project with cargo build --release. This will compile a native python module for the current Python interpreter. For use with Blender, make sure to build for the Python version used by Blender. This can be achieved by activating a virtual environment with the appropriate Python version or setting the Python interpeter using the PYO3_PYTHON environment variable. See the PyO3 guide for details.

Generate the type stubs with maturin generate-stubs --out <repo root dir>. Make sure to keep the sm4sh_model_py/__init__.py file if it gets deleted.

About

Python bindings to sm4sh_model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors