Files
2026-10-31 20:16:32 +01:00

24 lines
630 B
Python

"""Bundled characters and every animation FBX in their source folders."""
import re
from .paths import PROJECT, slug
BASE = PROJECT / "source_assets/character"
FIGHTER_MODEL = BASE / "fighter/Maria WProp J J Ong.fbx"
CREATURE_MODEL = BASE / "creature/Maw J Laygo.fbx"
def _clips(model):
clips = {}
for path in sorted(model.parent.glob("*.fbx")):
if path == model:
continue
key = re.sub(r"[^a-z0-9]+", "_", path.stem.lower()).strip("_")
slug(key)
if key in clips:
raise ValueError(f"Powtorzona nazwa animacji: {key}")
clips[key] = path
return clips