Gradio custom component: 3D MMD model viewer powered by Babylon.js + babylon-mmd
Project description
gradio_mmd_widget
[!WARNING] Unewviewed AI code Unewviewed AI code still remains.
A Gradio custom component for rendering MMD motion data in the browser with Babylon.js and babylon-mmd.
Why this component?
- Play VMD motion files with a built-in MMD character
- Use it directly as a Gradio input or output component
- Great for demos, interactive storytelling, and lightweight 3D previews
Installation
pip install gradio_mmd_viewer
Quick start
import gradio as gr
from gradio_mmd_viewer import MMDViewer
with gr.Blocks() as demo:
gr.Markdown("## MMD Viewer")
viewer = MMDViewer(
value="asset/demo.vmd",
label="MMD Viewer",
scale=2,
min_width=800,
)
if __name__ == "__main__":
demo.launch()
Features
- Built-in model and default motion assets
- Supports VMD URL input for switching animations
- Includes a local demo for development and testing
Demo
Run the bundled demo with:
python demo/app.py
Development notes
Technical implementation details, architecture notes, build steps, and troubleshooting guidance are maintained in AGENTS.md.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gradio_mmd_viewer-0.0.1.tar.gz.
File metadata
- Download URL: gradio_mmd_viewer-0.0.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f537611944864587d1b94ae82b9c7d204a80904841624ea0e51a543f43709d0
|
|
| MD5 |
0077db12212c00655f089e34de642da3
|
|
| BLAKE2b-256 |
384ac18db1cb5b05d0f4c82843651766391f644ae4a2339701993e9317b9b69f
|
File details
Details for the file gradio_mmd_viewer-0.0.1-py3-none-any.whl.
File metadata
- Download URL: gradio_mmd_viewer-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab7c050d4c0468bd5b90fb24e9cfdf0ddae7cab9c4a681cc1873d8851e94ccab
|
|
| MD5 |
c7ab3482898d15a2168a4fc838c32b55
|
|
| BLAKE2b-256 |
c686e36549b9296958d91d4b87780dbf0d1a2406455219428e44aaa804c4f26e
|