#!/bin/bash for f in *.mmd; do base=$(basename "$f" .mmd) echo "Converting $f → figs/${base}.png" mmdc -i "$f" -o "${base}.png" -s 3 done