-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathexample-batch.yml
63 lines (57 loc) · 1.76 KB
/
example-batch.yml
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
---
name: 3Ds Max 2016
icon_path: $ENVIRONMENT\_config\jean-paul-start\icons\max-2016.png
tags:
- DCC
- 3D
- Max
environment:
CUBE_ENVIRONMENT: production
CUBE_MAX_SCRIPTS: $ENVIRONMENT\max-2016
MAX_VERSION: 2016
MAX_NAME: Max-$MAX_VERSION
MAX_DIRECTORY: C:\Program Files\Autodesk\3ds Max $MAX_VERSION
PYTHONPATH:
- $MAX_DIRECTORY\python\Lib
- $ENVIRONMENT\max-2016
- $ENVIRONMENT\max-2016\python
INI_TEMPLATE: $ENVIRONMENT\max-2016\config\3dsmax-ini-default-$MAX_VERSION.ini.j2
INI_SOURCE: $LOCALAPPDATA\Autodesk\3dsMax\$MAX_VERSION - 64bit\ENU\3dsmax.ini
INI_TARGET: $LOCALAPPDATA\Autodesk\3dsMax\$MAX_VERSION - 64bit\ENU\${MAX_NAME}_3dsmax.ini
PLUGIN_INI_SOURCE: $CUBE_MAX_SCRIPTS\config\Plugin.UserSettings.ini.j2
PLUGIN_INI_TARGET: $LOCALAPPDATA\Autodesk\3dsMax\$MAX_VERSION - 64bit\ENU\${MAX_NAME}_Plugin_UserSettings.ini
tasks:
- name: Copy 3dsmax.ini template if missing
template:
src: $INI_TEMPLATE
dest: $INI_SOURCE
force: no
- name: Create custom 3dsmax.ini if missing
copy:
src: $INI_SOURCE
dest: $INI_TARGET
force: no
- name: Additional Icons
ini_file:
src: $INI_TARGET
state: present
section: Directories
option: Additional Icons
value: $ENVIRONMENT\max-2016\resources\icons
- name: Startup Scripts
ini_file:
src: $INI_TARGET
state: present
section: Directories
option: Startup Scripts
value: $CUBE_MAX_SCRIPTS\maxscript\startupscripts
- name: AutoBackup Enable
ini_file:
src: $INI_TARGET
state: present
section: AutoBackup
value: 1
- name: Launch 3DS Max 2016
raw:
command: "\"$MAX_DIRECTORY\\3dsmax.exe\" -p ${MAX_NAME}_Plugin_UserSettings.ini %* -i ${MAX_NAME}_3dsmax.ini"
...