Maxscript extended editor

45 votes
Version: 
1.1beta
Date Updated: 
05/07/2011

A script that adds some more functionality to the mxs editor.

Additional Info: 

(copy&pasted text from my site)
Started on this new script some time ago and i'm working on it on and off when I got time. At the moment it is still kinda rough around the edges and serves more like a proof of concept rather than a finished script. Anyway.
This script is meant to add some functionality to aid the scripting process in Max. The first thing you'll notice is that the scripting window and the listener is bundled into the same window. You can toggle to hide and show the listener by pressing the Listener button at the top button row.

The next thing I added is a simple outliner which shows a list with all your functions, UI elements, structs and event handlers in the currently opened maxscript. It works the same way as the ctrl + right click functionality in the editor; it will set focus where the selected element is in the script. You can toggle this feature on and off just like with the listener. Default is off.

The biggest feature of this script is an added scripting window where you can edit and compile c# and VB code. It has not very much functionality added to it, but you don't need an external IDE to compile assemblies to use in Max. You can compile your code to either an executable, an assembly or just straight to memory. There is syntax highlighting for c# only.

Before you can compile you need to configure the compile settings. If you are creating an executable or an assembly you need to specify the name and the path where you want to save the compiled results. When you are compiling to memory you just need to specify that you want to compile it there. If you need to refer to other .dlls or files add them to their respective text boxes (separated with a ',') See picture:

If you compile to memory, you can access the compiled results like this (old picture):

You can toggle this window on and off just like the others. Default is off.

The last feature is a stripped down (UI wise) version of the script explorer. Details can be seen here

Some credits:
http://forums.cgsociety.org/showthread.php?t=899696 Used this as a base to poll updates from the mxs editor.
http://www.mdxinfo.com/resources/scripting.php Used a heavily modified version of this for the new scripting window.

As mentioned, the script is still very unpolished. But do try it and give me some feedback! :)
Download for Max 2010 and above: Click to download

Download for Max 2009: Click to download Thanks to Alexander Kramer for making it work in Max 2009!

Known bugs:
- If the maxscript editor turns all gray, just create a new script from the MAXScript dropdown menu inside max. This will refresh the window back to normal.
- If you have not set the compile options and press the compile button, the compile options are triggered but the script is not compiled. You need to press the compile script button again to compile.

Version Requirement: 
Tested in Max 64bit: 2012, 2010. Max 32bit: 2010

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
haavards's picture

Hei, don't know what could be

Hei,
don't know what could be the cause of the scrolling issue. Currently I use max2012 64bit on a 3 year old pc, and the scrolling works normal here.

About the embedding, I actually got a script for it that I had implemented in the extended editor.

http://folk.ntnu.no/havardsc/scripts/MXSExtendedEmbedAsViewport.ms
http://bildr.no/view/884488

Open the extended editor first and the run this script.
Unfortunately it has a bug where the dotnet buttons stop working when the script is an extended viewport. The workaround is that you have to drag the explorer, outliner and the dotnet script window manually if you need to use them.

After my exams now in May, i'm going to do a rewrite of the whole extended editor. I got some new features and hopefully some bugs will be squashed.

kilad's picture

Very cool, but as mentioned

Very cool, but as mentioned here a bit laggy scrollwise.
Do you know some way to register the editor as a viewwindow? (registerViewWindow())
It would be super nice to have the editor and the listener as an extended viewport.

Adios on the toilet

pbiswal's picture

Scrolling is too slow

Hey Haavard,

Great script man.I love the function outliner feature.Thanks for doing this.

I haven't been able to use it to it's full extent because, the script editor window scrolling is too slow.It looks like it's lagging.

I am using 3dsmax 2012 64 bit on a windows xp 64 bit machine.I am guessing it's a problem in my system as i haven't seen anyone else posting about it.Anyways, i will keep checking.

Thanks
Keep up the good work :)

haavards's picture

Weird Miauu, have not been

Weird Miauu, have not been able to reproduce that one. I just tested it in max2008 64bit and it seems to running kinda poorly there. The script organizer acted up a bit on few of its features and the outliner stopped working after Max lost focus. If i remember correctly Max versions prior to 2010 are running an older version of the dot net framework, maybe that is the cause.

DeadClown: That looks like a cool thing to try an implement as an exercise! I will look at it when I'm done with my exams at the end of the month :)

miauu's picture

The "Outliner" work very

The "Outliner" work very strange on my max2009 32bit. When I double click on function's/UI element's/struct's/event handler's name the script go to top(0 line) and all code from start to the selected function's/UI element's/struct,s/event handlers name become highlighted(selected) and I have to manualy roll to find where the highlighted code end.

DeadClown's picture

wow! Great Idea, very useful!

wow! Great Idea, very useful! A thing I would love to see is a minimap like in "sublime text" editor.

Another nice-to-have feature would be customizable colors, white is a bit too bright for my color scheme ;)

AttachmentSize
sublime_text-20091208-083758.png 45.09 KB
lucpet59's picture

Very nice, what a great idea!

Very nice, what a great idea!

haavards's picture

Thanks for the feedback!

Thanks for the update Track, added an additional download link now : )

Kstudio's picture

It looks very interesting and

It looks very interesting and cool!

I sent e-mail with the description how to make that the script can be run in 3ds max 2009.

Thanks.

P.S. Yes - it is really cool!
I love outliner!

MaVCArt's picture

oh damn.

I just opened this, and i'm already completely thrilled by it. thanks man for sharing :D

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.