-
Notifications
You must be signed in to change notification settings - Fork 2
/
456.py
63 lines (48 loc) · 1.96 KB
/
456.py
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
# -----------------------------------------------------------
# 456.py
# v.2.1
# Updated: 20211127
# Houdini version: 18.5.563, Python 3
# Redshift version: 3.0.46
# -----------------------------------------------------------
"""
File runs on Houdini load of an existing file.
"""
# -----------------------------------------------------------
# GLOBAL VARIABLES )))))))))))))))))))))))))))))))))))) START
# -----------------------------------------------------------
# IMPORTANT: Reset 'USERNAME' with path to user-defined path
# of scripts location.
library_path = r'C:\Users\USERNAME\Documents\houdini18.0\scripts'
# -----------------------------------------------------------
# GLOBAL VARIABLES )))))))))))))))))))))))))))))))))))))) END
# -----------------------------------------------------------
# -----------------------------------------------------------
# IMPORT LIBRARIES )))))))))))))))))))))))))))))))))))) START
# -----------------------------------------------------------
import sys
sys.path.append(library_path)
from common_py_lib import utils, uiUtils
# -----------------------------------------------------------
# IMPORT LIBRARIES )))))))))))))))))))))))))))))))))))))) END
# -----------------------------------------------------------
# -----------------------------------------------------------
# MAIN )))))))))))))))))))))))))))))))))))))))))))))))) START
# -----------------------------------------------------------
def main():
r"""
Initialize Houdini session with custom presets
Args:
None
Returns:
None
"""
# Configure playbar options
uiUtils.lib_config_playbar()
# Set default colors for sticky notes & network boxes
utils.lib_set_stickyNotesNetBoxDefaults()
if __name__ == '__main__':
main()
# -----------------------------------------------------------
# MAIN )))))))))))))))))))))))))))))))))))))))))))))))))) END
# -----------------------------------------------------------