Skip to main content

Plotagon Director

Génération de films Plotagon Studio Desktop de bout en bout : écriture du scénario en YAML, validation contre la bibliothèque de ressources réelle, génération d'un fichier .plot importable dans l'application officielle — avec voix custom Edge TTS et synchro labiale.

Le format .plot a été entièrement rétro-ingénieré et confirmé par analyse d'exports officiels (v1.11.0) : ZIP contenant un document JSON .plotdoc (liste plate d'instructions scene, dialogue, music, action) et, par réplique vocalisée, un WAV mono 44,1 kHz + un fichier .phonemes (protobuf) pour la synchro labiale. Spécification complète : docs/PLOT_FORMAT.md.

Installation

pip install -e .                 # depuis un clone: commande `plotagon-director`
# ou directement depuis GitHub :
pip install git+https://github.com/mohamed-amine-ben-mallessa/plotagon-director.git

La bibliothèque de ressources (library.json) est embarquée dans le package : le générateur fonctionne sans installation Plotagon. L'extra [library] (pip install -e .[library], ajoute UnityPy) n'est nécessaire que pour reconstruire la bibliothèque depuis une installation Plotagon.

Usage

# Écrire un scénario
plotagon-director new "Mon film"              # squelette commenté
plotagon-director list scenes --filter cafe   # aussi: characters, expressions,
plotagon-director list actions                #   music, sounds, voices
plotagon-director positions restaurants.cafe  # slots d'acteurs d'une scène
plotagon-director voices fr                   # voix Edge TTS disponibles
plotagon-director say "Bonjour" fr-FR-DeniseNeural  # écouter une voix

# Valider puis générer
plotagon-director validate mon-film.yaml [--strict]
plotagon-director build mon-film.yaml mon-film.plot
#   --no-voices : hors ligne | --srt subs.srt : sous-titres
#   --no-cache : resynthétise tout (sinon cache TTS automatique)
plotagon-director batch scenarios/ sorties/   # tous les .yaml d'un dossier

# Importer mon-film.plot dans Plotagon Studio (menu import)

# Analyse / rétro-ingénierie
plotagon-director parse export.plot           # JSON brut d'un .plot
plotagon-director decompile export.plot film.yaml   # .plot -> YAML éditable
plotagon-director diff avant.plot apres.plot  # isoler un format inconnu
plotagon-director doctor                      # diagnostic environnement

# (Reconstruire la bibliothèque depuis une installation Plotagon)
python -m plotagon_director.library.builder [chemin/builtincontentmanifest.json]

Exemple de scénario

project:
  title: "Conversation au café"

cast:
  - ref: paul
    character: news.paul
    name: "Paul"
    voice: fr-FR-HenriNeural      # optionnel : voix Edge TTS (+ rate/pitch)
  - ref: lucy
    character: news.lucy
    name: "Lucy"
    voice: fr-FR-DeniseNeural

scenes:
  - scene: restaurants.cafe
    music: music.corny            # optionnel (music.stopmusic pour arrêter)
    actors:
      - ref: paul
        position: Table1          # `plotagon-director positions restaurants.cafe`
      - ref: lucy
        position: Table2
    dialogue:
      - actor: paul
        expression: happy
        text: "Bonjour Lucy !"
        camera: wide shot         # optionnel : 10 types (docs/PLOT_FORMAT.md)
      - actor: paul               # interaction à 2 personnages
        action: handshake
        target: lucy

Bibliothèque embarquée : 205 scènes (953 positions), 53 personnages, 88 expressions, 15 actions, 38 musiques, 132 sons.

Architecture

  • plotagon_director/core/ — modèle .plotdoc, conteneur ZIP, validateur, décompilateur, diff
  • plotagon_director/audio/ — Edge TTS → WAV conforme (cache + parallèle), phonèmes/lip-sync
  • plotagon_director/library/ — builder du catalogue + data/library.json
  • docs/ — rétro-ingénierie du format (PLOT_FORMAT.md), API interne de l'appli (APP_JS_ANALYSIS.md), état des connaissances (FINDINGS.md)
  • SKILL.md — utilisation comme skill Claude Code (local)
  • cloud-skill/ — variante du skill pour claude.ai et autres plateformes cloud (sandbox + PyPI, builds sans voix) ; voir cloud-skill/README.md pour générer le zip d'upload

Principes

  • Aucun mod, aucun binaire tiers, aucun credential.
  • Installation officielle en lecture seule.
  • Seuls les éléments confirmés par un export officiel sont générés ; le reste (effets visuels, sons importés) est documenté UNKNOWN dans docs/FINDINGS.md.

Tests

python -m pytest tests/ -q

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plotagon_director-0.6.1.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

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

plotagon_director-0.6.1-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file plotagon_director-0.6.1.tar.gz.

File metadata

  • Download URL: plotagon_director-0.6.1.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for plotagon_director-0.6.1.tar.gz
Algorithm Hash digest
SHA256 bad3e71f272cc6319f8646365dc9d0cd5b682a751c93eb9596a72d60572a7a90
MD5 a0d94386585e1ae774d0455ec1d8c391
BLAKE2b-256 a30e667d57ef0c7bb9d427d7081fdec144f37dcaab037e56c5c61b8ed5782450

See more details on using hashes here.

File details

Details for the file plotagon_director-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for plotagon_director-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2493eb2331b05a50e7ea7d72a5da2074d6d856640eea5c87df794b8de59605
MD5 f8e8c4280ec29b587c7cc3bdf4c887c2
BLAKE2b-256 7be128b7efb82386faf852dce8a1e6730576c68182f73d9af7eb5bc9c0bcca6f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.12.0

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

This release

0.6.1 This release

2 files

0.6.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page