[Closed] Maxscript editor tip/tutorial
Hi everyone,
I made a small video tutorial about a thing I found very usefull in the maxscript editor, I haven’t read anyone writing about it, but maybe I haven’t looked enough, but here it is: http://public.subd.nl/screencasts/
Hopefully it’s of any use.
-Johan
Thanks guys, it really shows how accustomed everyone was to the terrible, horrible old mxs editor, and we’re probably so happy with a pretty decent editor (although I can come up with a feature or 2 one, like code completion) not a lot of people delved into the new options… at least not me… until now that is… there are a lot more little gems hidden in the prefs file, like being able to open more then 10 files, multilinetabs etc… and I really wished the output pane could be used as a listener, so we could ditch the clumsy listener and have a streamlined window for editing and output.
-Johan
speaking of improvements to the mxsEditor – with the klunky old one, i did enjoy opening scripts in multiple windows to compare them side-by-side. i can’t really do this easily with the tabbed interface. i’d like the option to “float” one of the tabs or open multiple editors. if anyone knows how to do this & i’m just missing it, i’d appreciate the tip!
A little tip to help with making it easier to format the abbreviations file.
Write the code as you normally would in a script, then using the replace tool (Ctrl+H) turn on the “Transform backslash expressions” checkbox (Alt+B) and perform find and replace on line breaks and tabs.
if EXPR then
(
EXPR
)
else
(
EXPR
)
If you use that chunk of code and then do a search and replace searching for “
” and replacing with “
” (no quotations), it will insert a “
” at the beginning of each new line.
Then do a search and replace using ” ” and “\ ” and it will replace all of the tab characters.
All thats left to do is a few button presses using the “End” and “Delete” keys and your abbreviation file is nicely formatted.
EDIT: I just did the search and replace with “
” and “
” and this time it actually replaced the line breaks. Not too sure why it is leaving them in sometimes and sometimes not.