advanced example
This commit is contained in:
1 parent
8c0a639fba
commit
6fe57915e8
99 files changed
+1329
-56
No files matched your search
@@ -0,0 +1,23 @@
|
||||
"""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
|
||||
|
||||
|
||||
Reference in new issue
Block a user