MAXScript Pro Editor’s automatic indentation drove me nuts!

loocas | 3ds Max,maxscript,technical | Saturday, August 16th, 2008

Auto indentation banner

I’ve gotten sick of the defaultly setup auto-indentation in MAXScript Pro Editor as I’m too used to the old-school MAXScript editor found in Max prior to 3ds Max 2008. Thankfully, since somebody at Autodesk had the brightest idea of implementing a very well-known and well-used Scintilla based text editor, we’re allowed to tweak and change any of the editor’s settings to our liking!

I simply love total control over what I do and how I do it. So, changing this behavior was a must for me. I opened up the SciTE documentation and looked up the auto indentation options. Thankfully, there was the one and only command that I needed in order to override the lexer pre-defined indentation for MAXScript code:

indent.maintain.filepattern=1

Easily enough, replace the filepattern property with $(file.patterns.MAXScript) and you’re done!

To include this tag in the actual MAXScript Pro Editor, open the MXS_Editor.properties file and paste this code below line 112 which should read: “#indent.auto=1” (if not, for the sake of tidyness, paste the line in the “#Indentation” area):

indent.maintain.$(file.patterns.MAXScript)=1

That’s it, now SciTE behaves exactly like the old-school MAXScript editor, indentation-wise, of course ;)

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress | Theme by Roy Tanck