[Closed] Scintilla Script Editor ?
Hello all.
Im starting to use 3D studio Max (coming from years of Maya) and doing some MaxScripting… I see that many have syntax highlighting in their Max Script Editor… I have Max 2010 but the script editor in it doesnt seem to colour any syntax (even after validating the code)… is there an option to turn on?
Thansk
Max sure you have your language set to Maxscript in the Editor Language drop down. By default highlighting should be enabled, if you are using the maxscript language. Have you modified, or installed any 3rd party, configuration files for the editor? That is the only other way I can think of that you could break the highlighting.
-Eric
Actually I just noticed that if I open the Editor from the MaxScript menu I have the syntax colouring but if I edit some script from the Particle View (like a Birth Script node) then I dont have the highlighting feature… but Im sure some people have it
any idea?
Only the Maxscript Editor uses the new system. Anything that launches scripting editing from a modifier or controller will use the old maxscript editor.
-Eric
EDIT: From the maxscript help:
Also, according to the help the is a keyboard shortcut to color code, however it appears to be broken.
Yes, that is because secretly… it’s the new editor, but it’s a bit broke down.
Try this, open from the editor window menu > tools > Open User Options File.
Now paste this
style.MAXScript.32=$(font.base),fore:#f92672,back:#272822
Now check in the maxscript editor a script, background should be dark, right.
Now evaluate
newScript()
somewhere to open the “old” editor… background same color… So that tells me that the old editor was half baked replaced… unfortunately.
-Johan
The MS RichEdit Control used in the Legacy Editors was replaced with the Scintilla Control.
For whatever reason it was decided that touching the PFlow code more than that would be a bad idea. Of course, nobody seems to have the time to deal with this now… Post bugs against this, it might go high up the bug list to actually get attention.
how this guy then has a coloured interface then?
http://www.cg-academy.net/es_catalog/example_quicktime.php?e_name=particleflow_scripting_02&e_number=1
:rolleyes:
I mean … not big deal but Im new to the maxscript syntax and that would be really handy
Who’s that dude
Looks like the tutorial was recorded with max9, I think that was before the new mxs editor.
-Johan
LOL, “This Guy” decided to record in Max 9 for that specific reason. It is actually explained in the introduction of the tutorials. MAXScript for PFlow has not changed since Max 6 or so, so the version used to record it did not make much difference.