Skip to content

Instantly share code, notes, and snippets.

@oglops
Last active August 29, 2015 14:27
Show Gist options
  • Save oglops/93088a1d4148df15c0c2 to your computer and use it in GitHub Desktop.
Save oglops/93088a1d4148df15c0c2 to your computer and use it in GitHub Desktop.
initialize houdini 14 environment in any windows command prompt
@echo off
set "H=C:\Program Files\Side Effects Software\Houdini 14.0.395"
:: get houdini version
for %%v in (%H:"=%) do set HOUDINI_VERSION=%%v
:: convert to 8.3 short name
for %%f in ("%H%") do set H=%%~sf
:: replace \ with /
set H=%H:\=/%
set HB=%H%/bin
set HD=%H%/demo
set HFS=%H%
set HH=%H%/houdini
set HHC=%H%/houdini/config
set HSITE=%H%/site
set HT=%H%/toolkit
set HTB=%H%/toolkit/bin
:: extended syntax just in case if there are spaces in %PATH%
set "PATH=%H%/bin;%H%/toolkit/bin;%PATH%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment