19 lines
771 B
Python
19 lines
771 B
Python
import subprocess
|
|
from pathlib import Path
|
|
|
|
blender_script = """
|
|
import bpy
|
|
bpy.ops.wm.read_factory_settings(use_empty=True)
|
|
bpy.ops.import_scene.fbx(filepath=r"D:/UD/AI/XModel/LLM3DGraphics/mixamo/Male/Idle.fbx")
|
|
print("Actions in Idle.fbx:", [a.name for a in bpy.data.actions])
|
|
|
|
bpy.ops.wm.read_factory_settings(use_empty=True)
|
|
bpy.ops.import_scene.fbx(filepath=r"D:/UD/AI/XModel/LLM3DGraphics/mixamo/Male/Walking.fbx")
|
|
print("Actions in Walking.fbx:", [a.name for a in bpy.data.actions])
|
|
"""
|
|
|
|
Path("Tools/check_actions.py").write_text(blender_script, encoding="utf-8")
|
|
res = subprocess.run([r"C:\Program Files\Blender Foundation\Blender 5.2\blender.exe", "--background", "--python", "Tools/check_actions.py"], capture_output=True, text=True)
|
|
print(res.stdout[-400:])
|
|
|