-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdcc.bat
85 lines (72 loc) · 3.23 KB
/
dcc.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
:: Description: Set environment variables for various applications.
:: Author: Valentin Beaumont
:: Mail: [email protected]
@echo off
setlocal
:: Temporary values, only valid in this shell
:: Set variables (use quotes around values with spaces)
:: Double %% to avoid the expansion of the variable
set "SERVER_ROOT=C:\Users\valen\OneDrive"
set "CONFIG_ROOT=%%SERVER_ROOT%%\.config"
set "ENVIRONMENT_ROOT=%%CONFIG_ROOT%%\environment"
set "PIPELINE_ROOT=%%CONFIG_ROOT%%\pipeline"
set "HSITE=%%PIPELINE_ROOT%%\houdini"
set "MAYA_APP_DIR=%%PIPELINE_ROOT%%\maya"
set "NUKE_PATH=%%PIPELINE_ROOT%%\nuke"
set "SUBSTANCE_PAINTER_PLUGINS_PATH=%%PIPELINE_ROOT%%\substance_painter\python"
:: Header
echo.
powershell write-host -foregroundcolor White "Cloud VFX Server"
echo.
echo Valentin Beaumont - [email protected]
echo https://github.com/healkeiser/fxserver
echo.
echo ===========================================================================
echo.
:: Lasting values, saved in the system
:: Set environment variables
setx "SERVER_ROOT" "%SERVER_ROOT%"
powershell write-host -foregroundcolor Green "' 'SERVER_ROOT: %SERVER_ROOT%"
setx "CONFIG_ROOT" "%CONFIG_ROOT%"
powershell write-host -foregroundcolor Green "' 'CONFIG_ROOT: %CONFIG_ROOT%"
powershell write-host -foregroundcolor Green "' '-> Expanded: %SERVER_ROOT%%\.config"
setx "ENVIRONMENT_ROOT" "%ENVIRONMENT_ROOT%"
powershell write-host -foregroundcolor Green "' 'ENVIRONMENT_ROOT: %ENVIRONMENT_ROOT%"
powershell write-host -foregroundcolor Green "' '-> Expanded: %SERVER_ROOT%\.config\environment"
setx "PIPELINE_ROOT" "%PIPELINE_ROOT%"
powershell write-host -foregroundcolor Green "' 'PIPELINE_ROOT: %PIPELINE_ROOT%"
powershell write-host -foregroundcolor Green "' '-> Expanded: %SERVER_ROOT%\.config\pipeline"
:: Set application-specific variables
echo.
echo ===================================
echo.
powershell write-host -foregroundcolor Red "SideFX Houdini"
setx "HSITE" "%HSITE%"
powershell write-host -foregroundcolor Red "' 'HSITE: %HSITE%"
powershell write-host -foregroundcolor Red "' '-> Expanded: %SERVER_ROOT%\.config\pipeline\houdini"
echo.
echo ===================================
echo.
powershell write-host -foregroundcolor White "Autodesk Maya"
setx "MAYA_APP_DIR" "%MAYA_APP_DIR%"
powershell write-host -foregroundcolor Cyan "' 'MAYA_APP_DIR: %MAYA_APP_DIR%"
powershell write-host -foregroundcolor Cyan "' '-> Expanded: %SERVER_ROOT%\.config\pipeline\maya"
echo.
echo ===================================
echo.
powershell write-host -foregroundcolor White "Foundry Nuke"
setx "NUKE_PATH" "%NUKE_PATH%"
powershell write-host -foregroundcolor Yellow "' 'NUKE_PATH: %NUKE_PATH%"
powershell write-host -foregroundcolor Yellow "' '-> Expanded: %SERVER_ROOT%\.config\pipeline\nuke"
echo.
echo ===================================
echo.
powershell write-host -foregroundcolor White "Adobe Substance Painter"
setx "SUBSTANCE_PAINTER_PLUGINS_PATH" "%SUBSTANCE_PAINTER_PLUGINS_PATH%"
powershell write-host -foregroundcolor DarkGreen "' 'SUBSTANCE_PAINTER_PLUGINS_PATH: %SUBSTANCE_PAINTER_PLUGINS_PATH%"
powershell write-host -foregroundcolor DarkGreen "' '-> Expanded: %SERVER_ROOT%\.config\pipeline\substance_painter\python"
:: End
echo.
echo ===================================
echo.
pause