Notifications
Clear all

[Closed] Mxseditor calltips

Finally.
github

Installation: put in scripts startup or run manually

Some predefined examples:
Ctrl + Space: Show calltip for word at caret
Ctrl + Shift + Space: Show calltip for word under mouse cursor
Ctrl + Alt + Space: insert “last modified {date}” at current document position

ps. If you need a file with all of the maxscript functions with arguments it’s somewhere here on forum.

pps. I didn’t tested it much so there’s could be bugs. Feel free to modify it any way you like.

13 Replies

I saw this in 3dcenter.ru. Good job.

3dcenter is dead so I sometimes use it as a hosting. Sad but true

Thanks for making it public, may I ask what method did you use to generate the maxscript_functions_with_args.txt file?

And one minor nitpick now that I look at the whole code: the way you get scintilla hwnd will get you the first one opened in case there are two or more max instances with a script editor window. You might want to check if it’s owned by current max hwnd.

1 Reply
(@serejah)
Joined: 11 months ago

Posts: 0
  1. I have c# parser of mxs html reference files. 3500~ files processed in about four seconds on my laptop But it produce quite raw data, so there’s a lot of manual regex cleanup of the resulting file. Maybe I’ll upload it later on.

  2. I just don’t know how to do this yet. Anyway, doesn’t mxseditor has desktop as it’s parent?

You are a crack. Thanks. :keenly:

  1. that sucks, I was hoping there’s some easier way

  2. sure, but that’s parent, owner is a different thing – in this case, check the sixth element in the hwnd array

I will, thx for info.

//youtu.be/enRFYtw0VMs

What do you guys think of a little standalone tray app created for the same old purpose?
It’s still in an prototype stage with a lots of hardcoded stuff inside, but anyway.
Any ideas of how can it be used besides showing function args?

it’s not enough to only parse a script for searching for functions defined by user… you have to search in the global hashtable of published functions… it’s how max does do it for example when it colorizes functions, classes, max global vars, etc. in the editor.
as i see you use a hardcoded list

My previous maxscript attempt was able to show functions of an active document similar to what ctrl+rightclick does. That’s best i’m capable of for the moment.
Any chance of me getting access to that global hashtable without dive into c++ ?

Page 1 / 2