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.9.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.9-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gradio_mmd_viewer-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 3020000eab64a982d42c5ab58938b506e3ded86fbc0a18422eede97cd94923a5
MD5 bfc80b2a39fa49bdbb77f1ddba0ec92f
BLAKE2b-256 2bca55ac86eef8585b70b12c27bbb91cb912944fd41939a23b0de51c16145387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gradio_mmd_viewer-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 edcec9332abee55ac61162806f8b44b4f39d1642fd71f8b29f6a587f678e8dac
MD5 1a284d565437f9c4d260b18b7a5bb17b
BLAKE2b-256 733b4b3519383864488e4323f0e41fef56212b750af78405165b3e947ec5ad12

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