16 行
604 B
Python
16 行
604 B
Python
"""Shared source, bundle and Motion Templates paths for the shipped effects."""
|
|
from pathlib import Path
|
|
|
|
EFFECTS = ("大鱼调色", "一级调色", "HSL")
|
|
PREVIEWS = ("large.png", "small.png")
|
|
|
|
|
|
def template_files():
|
|
for effect in EFFECTS:
|
|
for name in (effect + ".moef", *PREVIEWS):
|
|
installed = Path(effect) / name
|
|
# Preserve the full effect's original flat bundle layout and artwork.
|
|
bundled = Path(name) if effect == EFFECTS[0] else installed
|
|
source = Path(name) if name in PREVIEWS else bundled
|
|
yield source, bundled, installed
|