Maxscript Editor Code Snippet Generator


#1

I am very happy to use the tab-tab function of Visual Studio
So I used mxseditor_calltips and mxseditor to make a code snippet generator

Configuration steps:

1. install mxseditor
2. remove [ctrl + tab] hot key:
menu-tools-open global options file
find:# User defined key commands
and:
Ctrl+Tab||\ 
restart max
3. find script file [fn codeSnippet] write your code snippet


Known problems:

Shortcut keys are global,I didn't find a way to use the AssignCmdKey

Download

Maybe you can revamp this tool to make something more interesting!


#2

looks cool! but let me ask you how often do you compete in MaxScript speed competitions? :wink:


#3

I just looked at the code … it’s very smart. Thanks for sharing. This looks like a good mxs learning material for the community.

one comment…

global mxse = mxseHotKeyOps()
global mxs  = mxseOps()

mxse, mxs

These globals for me are too commonly used. They can be easily overwritten by someone else.


#4

I just changed some of the shortcut codes in the mxseditor_calltips .:crazy_face:


#5

I rarely participate in forum discussions because of my poor English.:joy:


#6

in vain … this forum is in dire need of young blood!


#7

You’re absolutely right. When I uploaded this years ago I just left it as it as. Also It should be one global as it is one tool.

They’re not only global, but also block max shortcuts.
If you want to make it work use wm_activate message to toggle custom hotkeys. Remove them when editor gets deactivated and register them again on activation.


#8

Maybe I am missing something but I use the Abbreviations for the same purpose.