Skip to content

Instantly share code, notes, and snippets.

@jtomori
Last active August 8, 2020 00:41
Show Gist options
  • Save jtomori/80a14efebd397a57f1c0106a37a97c41 to your computer and use it in GitHub Desktop.
Save jtomori/80a14efebd397a57f1c0106a37a97c41 to your computer and use it in GitHub Desktop.
@echo off
rem houdini launcher
rem source global vars
call \\network_drive\current_project\00_pipeline\globals.bat
rem set Houdini paths
rem variables PIPELINE, ROOT were set in globals.bat
set "HOUDINI_VERSION=Houdini 15.5.632"
set "HOUDINI_PATH=&;%PIPELINE%/houdini"
set "HOUDINI_OTLSCAN_PATH=&;%ROOT%/20_assets/otls"
set "HOUDINI_SPLASH_FILE=%PIPELINE%/houdini/splash.jpg"
set "HOUDINI_SPLASH_MESSAGE= | JELLY FISH | %HOUDINI_VERSION% | %USERNAME% |"
set "JOB=%ROOT%"
set "HOUDINI_BACKUP_FILENAME=$BASENAME_bak_$N"
set "HOUDINI_BACKUP_DIR=bak"
set "HOUDINI_NO_START_PAGE_SPLASH=1"
set "HOUDINI_ANONYMOUS_STATISTICS=0"
set "HOME=%ROOT%/05_user/%USERNAME%"
set "HOUDINI_DESK_PATH=&;C:/Users/%USERNAME%/Documents/houdini15.5/desktop"
set "HOUDINI_TEMP_DIR=%HOME%/tmp"
set "HOUDINI_BUFFEREDSAVE=1"
set "HOUDINI_IMAGE_DISPLAY_GAMMA=1"
set "HOUDINI_IMAGE_DISPLAY_LUT=%PIPELINE%/houdini/linear-to-srgb_14bit.lut"
set "HOUDINI_IMAGE_DISPLAY_OVERRIDE=1"
set "MEGASCANS=%JOB%/20_assets/megascans/Megascans/"
set "MEGASCANS3D=%MEGASCANS%3d/"
rem convert to forward slashes
set "MEGASCANS=%MEGASCANS:\=/%"
set "MEGASCANS3D=%MEGASCANS3D:\=/%"
rem create temp dir for houdini user if it does not exist, also convert to forwardslashes
set "TMP=%HOUDINI_TEMP_DIR%"
set "TMP=%TMP:/=\%"
IF not exist %TMP% (mkdir %TMP%)
rem run Houdini
set "HOUDINI_DIR=C:\Program Files\Side Effects Software\%HOUDINI_VERSION%\bin"
set "PATH=%HOUDINI_DIR%;%PATH%"
cd ../../
start houdinifx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment