类似于快感前线,不过是16进制分类
欲炼江湖Spine整理工具.zip (1.8 MB)
import os
import subprocess
dir = r""
covertool = r"astcenc-avx2.exe" # 你的 astcenc 路径
def convert_astc(astc_file):
png_file = os.path.splitext(astc_file)[0] + ".png"
cmd = [
covertool,
"-ds", # fucking patch version
astc_file,
png_file
]
try:
subprocess.run(cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print(f"Done: {png_file}")
except subprocess.CalledProcessError as e:
print(f"FUck: {astc_file}")
print(e.stderr.decode(errors="ignore"))
for root, dirs, files in os.walk(dir):
for file in files:
if file.lower().endswith(".astc"):
convert_astc(os.path.join(root, file))
感谢两位大佬![]()
都不知道该怎么说好了,用Spine播放序列帧动画 ![]()
