PDA

View Full Version : Scintilla Script Editor ?


mattjakob
01-13-2010, 03:26 PM
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 :)

PiXeL_MoNKeY
01-13-2010, 03:48 PM
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

mattjakob
01-13-2010, 04:11 PM
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?

PiXeL_MoNKeY
01-13-2010, 04:15 PM
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:Some areas of MAXScript in 3ds Max 2008and highersuch as Particle Flow Script Operators and the newScript() method still open instances of the Legacy Editors.Also, according to the help the is a keyboard shortcut to color code, however it appears to be broken.

JHN
01-13-2010, 05:34 PM
EDIT: From the maxscript help:[/font][/size]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

Bobo
01-13-2010, 05:48 PM
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.

JHN
01-13-2010, 06:39 PM
Yes, posted it again, I think I log it every new release :hmm:

-Johan

mattjakob
01-13-2010, 06:44 PM
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

JHN
01-13-2010, 07:19 PM
Who's that dude ;)

Looks like the tutorial was recorded with max9, I think that was before the new mxs editor.

-Johan

Bobo
01-13-2010, 07:22 PM
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

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.

mattjakob
01-13-2010, 08:05 PM
I realy like your DVDs lol

JohnnyRandom
01-17-2010, 02:46 AM
LOL, and Crtl+D has been conveniently changed to "delete all" instead of syntax coloring in the new editor...ooopps I did it again :eek: j/k
BTW would still love to see the history dropdown list in the open and save dialogs :)

CGTalk Moderation
01-17-2010, 02:46 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.