25 lines
889 B
Batchfile
25 lines
889 B
Batchfile
@echo off
|
|
rem Starts a tool from D:\Oculusquest\Projekt\_Tools\ComfyGen for this project.
|
|
rem gen list the tools
|
|
rem gen generate <name> image from prompts.py
|
|
rem gen adopt <name> cut out + copy into ASSETS_DIR\Sprites
|
|
rem gen generate_audio <name> music / sfx from the audio list
|
|
set TOOLS=D:\Oculusquest\Projekt\_Tools\ComfyGen
|
|
rem shift below also moves %0, so remember this folder first
|
|
set HERE=%~dp0
|
|
set SCRIPT=%~1
|
|
if "%SCRIPT%"=="" (
|
|
echo Tools:& dir /b "%TOOLS%\*.py" | findstr /v /b "_"
|
|
exit /b 0
|
|
)
|
|
shift
|
|
set PY=py -3.12
|
|
if /i "%SCRIPT%"=="generate_voice" set PY="%TOOLS%\.venv-tts\Scripts\python.exe"
|
|
if /i "%SCRIPT%"=="make_voice_refs" set PY="%TOOLS%\.venv-tts\Scripts\python.exe"
|
|
set PYTHONIOENCODING=utf-8
|
|
pushd "%HERE%"
|
|
%PY% "%TOOLS%\%SCRIPT%.py" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
|
set RC=%ERRORLEVEL%
|
|
popd
|
|
exit /b %RC%
|