mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-29 16:25:49 +00:00
initial demo support
This commit is contained in:
parent
0f2e103294
commit
359a036558
406 changed files with 10513 additions and 1158 deletions
|
|
@ -65,6 +65,7 @@ print(f"[dif2gltf] Processing {len(input_files)} file(s)...")
|
|||
total = len(input_files)
|
||||
success_count = 0
|
||||
failure_count = 0
|
||||
failed_paths = []
|
||||
for i, in_path in enumerate(input_files, start=1):
|
||||
# Derive output path: same location, same name, but .glb/.gltf extension
|
||||
ext = ".gltf" if args.format == "GLTF_SEPARATE" else ".glb"
|
||||
|
|
@ -88,6 +89,7 @@ for i, in_path in enumerate(input_files, start=1):
|
|||
raise RuntimeError(f"Import failed via {op_id}")
|
||||
except Exception:
|
||||
failure_count += 1
|
||||
failed_paths.append(in_path)
|
||||
print(f"\n{RED}[dif2gltf] [{i}/{total}] FAIL:{RESET} {in_path}")
|
||||
continue
|
||||
|
||||
|
|
@ -111,6 +113,7 @@ for i, in_path in enumerate(input_files, start=1):
|
|||
)
|
||||
if "FINISHED" not in res:
|
||||
failure_count += 1
|
||||
failed_paths.append(in_path)
|
||||
print(f"\n{RED}[dif2gltf] [{i}/{total}] FAIL (export):{RESET} {out_path}")
|
||||
continue
|
||||
|
||||
|
|
@ -118,3 +121,7 @@ for i, in_path in enumerate(input_files, start=1):
|
|||
print(f"{GREEN}[dif2gltf] [{i}/{total}] OK:{RESET} {in_path} -> {out_path}")
|
||||
|
||||
print(f"[dif2gltf] Done! Converted {success_count} file(s), {failure_count} failed.")
|
||||
if failed_paths:
|
||||
print(f"\n{RED}[dif2gltf] Failed paths:{RESET}")
|
||||
for p in failed_paths:
|
||||
print(os.path.relpath(p))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue