-
Notifications
You must be signed in to change notification settings - Fork 11
/
project_mari.sh
executable file
·145 lines (119 loc) · 6.23 KB
/
project_mari.sh
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/bin/bash
# Coded by Andrew Rasmussen 2013. When it is terrible or breaks blame him. Or bake him pity cookies.
# Start Up Script for Mari in the pipeline, setting all the variables.
# ------------------------------------------------------------------------------
# NOTE 5/20/15: I tried cleaning up the Mari code so it follows proper software design practices.
# I moved the environment variables into project_env and removed the references here,
# but it broke something in this code so the code could not use the houdini utilities for converting files.
# Change the code below at your own peril.
# Chris Wasden
#export USER_SCRIPTS=${HOME}/ADRMariScripts/
export PROJECT_NAME=papa
export JOB=/groups/${PROJECT_NAME}
export MARI_SCRIPT_PATH=${JOB}/papa-tools/mari-tools/
export MARI_DEFAULT_GEOMETRY_PATH=${JOB}/PRODUCTION/assets/
export ICONS=/usr/local/Mari2.6v4/Media/Icons/
export PATH=/opt/hfs14.0.201.13/bin:$PATH
#export MARI_DEFAULT_CACHE=/warthome/${USERNAME}
#MARI_DEFAULT_GEOMETRY_PATH
#MARI_DEFAULT_IMAGE_PATH
#MARI_DEFAULT_ARCHIVE_PATH
#MARI_DEFAULT_EXPORT_PATH
#MARI_DEFAULT_SHELF_PATH
#MARI_DEFAULT_RENDER_PATH
#MARI_DEFAULT_CAMERA_PATH
wacomTabSetUp()
{
## This Preset is set up specifically for Mari 2.0
## Stylus
xsetwacom set "Wacom Cintiq 22HD stylus" MapToOutput HEAD-1
## Eraser
xsetwacom set "Wacom Cintiq 22HD eraser" MapToOutput HEAD-1
## Pad
xsetwacom set "Wacom Cintiq 22HD pad" MapToOutput HEAD-1
## Central button (Full Screen)
##xsetwacom set "Wacom Cintiq 22HD pad" Button 1 "key f11"
## Button Mapping Left
xsetwacom set "Wacom Cintiq 22HD pad" StripLeftDown "key minus" # Brush radius
xsetwacom set "Wacom Cintiq 22HD pad" StripLeftUp "key plus" # Brush radius
xsetwacom set "Wacom Cintiq 22HD pad" Button 1 "key +shift" # Shift
xsetwacom set "Wacom Cintiq 22HD pad" Button 2 "key +c" # EyeDropper
xsetwacom set "Wacom Cintiq 22HD pad" Button 3 "key +k" # Brushes
xsetwacom set "Wacom Cintiq 22HD pad" Button 8 "key +alt" # Alt
xsetwacom set "Wacom Cintiq 22HD pad" Button 9 "key ctrl z" # Undo
xsetwacom set "Wacom Cintiq 22HD pad" Button 10 "key b" # Bake Paint Layer
xsetwacom set "Wacom Cintiq 22HD pad" Button 11 "key super F9" # Pie Selector
xsetwacom set "Wacom Cintiq 22HD pad" Button 12 "key +x" # Guestures
##xsetwacom set "Wacom Cintiq 22HD pad" Button 13 "key home" # Hide All Pallates
## Button Mapping Right
xsetwacom set "$WACOM_PAD" StripRightUp "key super pgup" # brush radius (must be mapped in GIMP)
xsetwacom set "$WACOM_PAD" StripRightDown "key super pgdn" # +ctrl = faster
xsetwacom set "Wacom Cintiq 22HD pad" Button 15 "key t" # Hide Selection
xsetwacom set "Wacom Cintiq 22HD pad" Button 16 "key t" # Show Entire Object
xsetwacom set "Wacom Cintiq 22HD pad" Button 17 "key super F2" # F2
xsetwacom set "Wacom Cintiq 22HD pad" Button 18 "key super F3" # F3
xsetwacom set "Wacom Cintiq 22HD pad" Button 19 "key n" # Hard Brush
xsetwacom set "Wacom Cintiq 22HD pad" Button 20 "key n" # Open BYU Houdini
xsetwacom set "Wacom Cintiq 22HD pad" Button 21 "key n" # Open BYU Maya
xsetwacom set "Wacom Cintiq 22HD pad" Button 22 "key n" # Open Terminal
# Here is the layout for custom mapping:
#
# Left Right
# +-----------+ +-----------+
# | Button 2 | | Button 15 |
# +-----------+ +-----------+
# | Button 3 | | Button 16 |
# +-----------+ +-----------+
# | Button 8 | | Button 17 |
# +-----------+ +-----------+
# | Button 9 | | Button 18 |
# +-----------+ +-----------+
# +-----------+ +-----------+
# | Button 1 | | Button 14 |
# +-----------+ +-----------+
# +-----------+ +-----------+
# | Button 10 | | Button 19 |
# +-----------+ +-----------+
# | Button 11 | | Button 20 |
# +-----------+ +-----------+
# | Button 12 | | Button 21 |
# +-----------+ +-----------+
# | Button 13 | | Button 22 |
# +-----------+ +-----------+
#
echo "Pen Tablet Settings Calibrated";
}
wacomTabSetUp
# Starting Mari
echo "Starting Mari...";
# /usr/local/Mari2.6v4/mari
/usr/local/Mari2.6v4/mari
#createJToolsMenu()
# CERTIFICATES = 'CERTIFICATES' #: Security certificates.
# COLOR = 'COLOR' #: L{Color} data.
# C_API_DOCS = 'C_API_DOCS' #: C API documentation.
# DEFAULT_ARCHIVE = 'MARI_DEFAULT_ARCHIVE_PATH' #: The default path to load and save project archives.
# DEFAULT_CAMERA = 'MARI_DEFAULT_CAMERA_PATH' #: The default path to load and save cameras and projectors.
# DEFAULT_EXPORT = 'MARI_DEFAULT_EXPORT_PATH' #: The default path to export textures to.
# DEFAULT_GEO = 'MARI_DEFAULT_GEOMETRY_PATH' #: The default path to load geometry from.
# DEFAULT_IMAGE = 'MARI_DEFAULT_IMAGE_PATH' #: The default path to load and save reference images.
# DEFAULT_IMPORT = 'MARI_DEFAULT_IMPORT_PATH' #: The default path to import textures from.
# DEFAULT_RENDER = 'MARI_DEFAULT_RENDER_PATH' #: The default path to save renders such as turntables.
# DEFAULT_SHELF = 'MARI_DEFAULT_SHELF_PATH' #: The default path to load and save shelf files.
# EXAMPLES = 'EXAMPLES' #: Example data assets.
# GRADIENTS = 'GRADIENTS' #: Brush gradients.
# HELP = 'HELP' #: Help documentation resources.
# ICONS = 'ICONS' #: Tool bar and menu item icons.
# IMAGES = 'IMAGES' #: General system images.
# LOGOS = 'LOGOS' #: Logo images for the application.
# LUTS = 'LUTS' #: LUT data.
# MEDIA = 'MEDIA' #: Top level media directory.
# MISC = 'MISC' #: Other miscellaneous data.
# QT_PLUGINS = 'QT_PLUGINS' #: Qt plug-ins.
# SCRIPT_DOCS = 'SCRIPT_DOCS' #: Python documentation.
# SETTINGS = 'SETTINGS' #: Default settings.
# SHADERS = 'SHADERS' #: Built-in shader code.
# SYSTEM_SCRIPTS = 'SCRIPTS' #: Built-in Python scripts - AppDir/Media/Scripts.
# USER = 'MARI_USER_PATH' #: Root of the default user path - default: ~/Mari.
# USER_PLUGINS = 'MARI_PLUGINS_PATH' #: A list of paths to load custom user plug-ins from - default: ~/Mari/Plugins.
# USER_SCRIPTS = 'MARI_SCRIPT_PATH' #: A list of paths to run scripts from - default: ~/Mari/Scripts.