1
1
"""
2
2
inbrowserhelp example: inbrowserhelp sample
3
3
"""
4
- import webbrowser
5
- import menuhook
6
4
from sys import version_info
7
5
from pymxs import runtime as rt
6
+ import webbrowser
7
+ import menuhook
8
8
MAX_VERSION = rt .maxversion ()[7 ]
9
- MAX_HELP = f"help.autodesk.com/view/MAXDEV/ { MAX_VERSION } /ENU "
9
+ MAX_HELP = f"help.autodesk.com/view/MAXDEV"
10
10
11
11
PYTHON_VERSION = f"{ version_info [0 ]} .{ version_info [1 ]} "
12
12
13
13
MAX_VERSION_TOPICS = {
14
14
2021 : [
15
- ("gettingstarted" ,
15
+ ("gettingstarted" ,
16
16
"Getting Started With Python in 3ds Max" ,
17
- "help.autodesk.com/view/MAXDEV /2021/ENU/?guid=Max_Python_API_about_the_3ds_max_python_api_html" ,
17
+ f" { MAX_HELP } /2021/ENU/?guid=Max_Python_API_about_the_3ds_max_python_api_html" ,
18
18
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2" ),
19
- ("pymxs" ,
19
+ ("pymxs" ,
20
20
"Pymxs Online Documentation" ,
21
- "help.autodesk.com/view/MAXDEV /2021/ENU/?guid=Max_Python_API_using_pymxs_pymxs_module_html" ,
21
+ f" { MAX_HELP } /2021/ENU/?guid=Max_Python_API_using_pymxs_pymxs_module_html" ,
22
22
"44985F87-C175-4F3D-B70F-9FA0B6242AE1" )
23
23
],
24
24
2022 : [
25
- ("gettingstarted" ,
25
+ ("gettingstarted" ,
26
26
"Getting Started With Python in 3ds Max" ,
27
- "help.autodesk.com/view/MAXDEV /2022/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
27
+ f" { MAX_HELP } /2022/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
28
28
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2" ),
29
- ("pymxs" ,
29
+ ("pymxs" ,
30
30
"Pymxs Online Documentation" ,
31
- "help.autodesk.com/view/MAXDEV /2022/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
31
+ f" { MAX_HELP } /2022/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
32
32
"44985F87-C175-4F3D-B70F-9FA0B6242AE1" )
33
33
],
34
34
2023 : [
35
- ("gettingstarted" ,
35
+ ("gettingstarted" ,
36
36
"Getting Started With Python in 3ds Max" ,
37
- "help.autodesk.com/view/MAXDEV /2023/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
37
+ f" { MAX_HELP } /2023/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
38
38
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2" ),
39
- ("pymxs" ,
39
+ ("pymxs" ,
40
40
"Pymxs Online Documentation" ,
41
- "help.autodesk.com/view/MAXDEV /2023/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
41
+ f" { MAX_HELP } /2023/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
42
42
"44985F87-C175-4F3D-B70F-9FA0B6242AE1" )
43
43
],
44
44
2024 : [
45
- ("gettingstarted" ,
45
+ ("gettingstarted" ,
46
46
"Getting Started With Python in 3ds Max" ,
47
- "help.autodesk.com/view/MAXDEV /2024/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
47
+ f" { MAX_HELP } /2024/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
48
48
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2" ),
49
- ("pymxs" ,
49
+ ("pymxs" ,
50
50
"Pymxs Online Documentation" ,
51
- "help.autodesk.com/view/MAXDEV /2024/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
51
+ f" { MAX_HELP } /2024/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
52
52
"44985F87-C175-4F3D-B70F-9FA0B6242AE1" )
53
53
],
54
54
2025 : [
55
- ("gettingstarted" ,
55
+ ("gettingstarted" ,
56
56
"Getting Started With Python in 3ds Max" ,
57
- "help.autodesk.com/view/MAXDEV /2025/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
57
+ f" { MAX_HELP } /2025/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html" ,
58
58
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2" ),
59
- ("pymxs" ,
59
+ ("pymxs" ,
60
60
"Pymxs Online Documentation" ,
61
- "help.autodesk.com/view/MAXDEV /2025/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
61
+ f" { MAX_HELP } /2025/ENU/?guid=MAXDEV_Python_using_pymxs_html" ,
62
62
"44985F87-C175-4F3D-B70F-9FA0B6242AE1" )
63
63
]
64
64
}
@@ -70,27 +70,27 @@ def get_version_topics(version):
70
70
71
71
V_TOPICS = get_version_topics (MAX_VERSION )
72
72
73
- PYSIDE6_DOC = ("pyside6" ,
73
+ PYSIDE6_DOC = ("pyside6" ,
74
74
"Qt for Python Documentation (PySide6)" ,
75
75
"doc.qt.io/qtforpython-6/index.html" ,
76
76
"E0E5F945-CD55-404A-840B-81540829E4C4" )
77
77
78
- PYSIDE2_DOC = ("pyside2" ,
78
+ PYSIDE2_DOC = ("pyside2" ,
79
79
"Qt for Python Documentation (PySide2)" ,
80
80
"doc.qt.io/qtforpython-5/contents.html" ,
81
81
"13EEE11E-1BBB-470E-B757-F536D91215A9" )
82
82
83
83
TOPICS = V_TOPICS + [
84
- ("howtos" ,
84
+ ("howtos" ,
85
85
"Python HowTos Github Repo" ,
86
86
"github.com/ADN-DevTech/3dsMax-Python-HowTos" ,
87
87
"2504EEA5-27D6-4EA0-A7A3-B3C058777ADC" ),
88
- ("samples" ,
88
+ ("samples" ,
89
89
"Python samples (Github Repo)" ,
90
90
"github.com/ADN-DevTech/3dsMax-Python-HowTos/tree/master/src/samples" ,
91
91
"8ED9D9CC-3799-435D-8016-0F8F16D84004" ),
92
92
PYSIDE6_DOC if MAX_VERSION >= 2025 else PYSIDE2_DOC ,
93
- ("python" ,
93
+ ("python" ,
94
94
f"Python { PYTHON_VERSION } Documentation" ,
95
95
f"docs.python.org/{ PYTHON_VERSION } /" ,
96
96
"B51BCC07-D9E3-439C-AC88-85BD64B97912" )
@@ -112,4 +112,4 @@ def startup():
112
112
tooltip = topic [1 ],
113
113
in2025_menuid = menuhook .BROWSE_DOCUMENTATION ,
114
114
id_2025 = topic [3 ])
115
-
115
+
0 commit comments