MetaBox/Scripts/Animation/dwpicker/scripts/convert_multiple_animschool_files.py
2025-01-14 03:08:55 +08:00

13 lines
411 B
Python

# This code as to be ran in a Maya able to use 'dwpicker' package.
import os
from dwpicker.ingest import animschool
SOURCE_DIRECTORY = "" # Replace those variables before conversion
DESTINATION_DIRECTORY = ""
for f in os.listdir(SOURCE_DIRECTORY):
if not f.lower().endswith(".pkr"):
continue
filepath = os.path.join(SOURCE_DIRECTORY, f)
animschool.convert(filepath, DESTINATION_DIRECTORY)