This little script requires you to install,
-
sublime text 3 = https://www.sublimetext.com/3
-
ST3 package manager = https://packagecontrol.io/installation
-
Install the (awesome) Sent to 3Dsmax plugin via install package option
-
Go to Preferences and Browse packages, and in the User folder create a file names : open_max_help.py
Paste the following content:
import sublime, sublime_plugin
import subprocess
'''
Code taken from : https://forum.sublimetext.com/t/select-word-under-cursor-for-further-processing/10913
'''
class open_max_help(sublime_plugin.TextCommand):
def run(self, edit):
for region in self.view.sel():
if region.begin() == region.end():
word = self.view.word(region)
else:
word = region
if not word.empty():
key = self.view.substr(word)
url = "http://docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help//index.html?query=" + key
pid = subprocess.Popen(["C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", url]).pid
print (url)
- Open key bindings user and add the following line to it (make sure to add a comma to previous line!)
{ "keys": ["f1"], "command" : "open_max_help"}
If all is well, you now can use Sublime text, almost exactly like the maxscript editor. Click in a word or make a selection and press F1 to go to the online help file. I’m sure it can be extended to a local help file of another version. Ideally this script is included in the “Sent to 3dsMax” package.
Hope it’s of use to anyone!



