Skip to main content

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

gradio_mmd_viewer-0.0.6.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gradio_mmd_viewer-0.0.6-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file gradio_mmd_viewer-0.0.6.tar.gz.

File metadata

  • Download URL: gradio_mmd_viewer-0.0.6.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • 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

Hashes for gradio_mmd_viewer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6dbde74ee4157a3ea6f4eb2a3220fc727eb4ae1cb07628350f47fd78abc30f50
MD5 7ea4a7f5ed3b65890f470e95159ac9ff
BLAKE2b-256 e896e84cac7527ce69ef5e2383be10e0537cae682b7c987e641ab5a6c58eced0

See more details on using hashes here.

File details

Details for the file gradio_mmd_viewer-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: gradio_mmd_viewer-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 MB
  • 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

Hashes for gradio_mmd_viewer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 27f6909e1da0a15bca377ca17891dd6c892f0e3160aaffd901b48b9895460c3e
MD5 08f030e9ef35578e6864553236741dc7
BLAKE2b-256 eed32c11abbafca4bbc0d5d1449131d4a9681026b9da7d6b8417420d59daa7f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page