PDA

View Full Version : Open a script file thorugh scripting


davestewart
12-01-2008, 01:42 AM
I want to pop open a script file for editing in the max editor.
I tried a shelllaunch, but that just opened another copy of max, and didn't open the file either.

Is it possible, or am I stuck with notepad?

distract
12-01-2008, 02:56 AM
newEditor = newscript()
format "hello world\n" to:newEditor

donīt know if this helps, itīs the old editor.

Bobo
12-01-2008, 05:13 AM
Uhm,

EDIT "yourScriptName.ms"

?

davestewart
12-01-2008, 09:35 AM
Heh, heh,

Well whatdya know - I apropos'ed the hell out of this one, but just missed that in the help!

It might be nice to include a side-note about this in the windowstream topic, next to newScript(), as they're like distant cousins or something.

Thanks bobo!

davestewart
12-01-2008, 09:43 AM
Let me return the favour then:

I learnt a useful tip in Vista yesterday. If you SHIFT+Right Click any file in any Explorer window (including open/save dialogs) you get an option "Copy as Path", which gives you the full path to the file, including quotes!

"E:\05 - Scripting\MaxScript\projects\Animation\MD2 Exporter\MD2 Exporter 03.ms"

So useful!

Cheers,
Dave

CGTalk Moderation
12-01-2008, 09:43 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.