Finally abandoned the maxScript editor


#14

Ok cool i got it working :slight_smile:

Cheers!


#15

I use: (mxscom.exe is in the root of PSPad)
%PSPath%\mxscom.exe -f %File%

Also RegisterOLEControl.ms needs to go into the max\scripts\startup folder. (it comes with mxscom.exe from rezn8)

-- registers running of files and executing script code to OLE.
 registerOLEInterface #( filein, execute, edit )
 

Lastly the registry files needs to be edited for max8, should be fairly straight forward

REGEDIT
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;
 ;  1. Change the path in the last line of this file to point at your
 ;	 current 3ds max executable directory, then
 ;  2. Double click this file in Windows Explorer
 ;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;
 ; registration info MAX.Application (defaults to MAX.Application.8)
 
 HKEY_CLASSES_ROOT\MAX.Application = OLE Automation MAX Application
 HKEY_CLASSES_ROOT\MAX.Application\Clsid = {7FA22CB1-D26F-11d0-B260-00A0240CEEA3}
 HKEY_CLASSES_ROOT\MAX.Application\CurVer = MAX.Application.8
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; registration info MAX 8.0
 
 ; (Application Object)
 HKEY_CLASSES_ROOT\MAX.Application.8 = OLE Automation MAX 8.0 Application
 HKEY_CLASSES_ROOT\MAX.Application.8\Clsid = {7FA22CB1-D26F-11d0-B260-00A0240CEEA3}
 
 HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3} = OLE Automation MAX 8.0 Application
 HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3}\ProgID = MAX.Application.8
 HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3}\VersionIndependentProgID = MAX.Application
 HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3}\LocalServer32 = C:\Program Files\Autodesk\3dsMax8\3dsmax.exe

#16

Cool, guess I was posting as you got it working. :thumbsup:


#17

When I hit f9 (compile) in pspad i get the mxscom error pop-up message (roughly translated to english)

“Runtime error ‘429’: Object creation by ActiveX component not possible”

Any idea what this means?


#18

I used the Rezn8 bridge and Crimson Editor a while back, but stopped as when any maxscript errored, there’s no feedback or line highlighting.

Anyone got any solutions to this?

Cheers,
Dave


#19

Dave. None as yet. Some parts of the maxscript core would have to be overhauled for that to happen.

Chris J.


#20

Can somebody reupload mxscom?

rezn8 site down… :sad:

Thanks


#21

DeKoVV: I have attached the mxscom.zip file for you.

I have setup PSPad as follows:

  1. Settings > User Highlighters > load MaxScript.ini > Save
  2. Highlighter Settings > <not assigned> > Specification > User Highlighters > Maxscript
  3. Highlighter Settings > Maxscript > External Applications >

Name: Maxscript Execute
Application: %PSPath%Plugins\mxscom.exe -f %File%

Name: Maxscript Open
Application: %PSPath%Plugins\mxscom.exe -e edit “%File%”

  1. Settings > Program Settings > Key Map > File > Maxscript Execute Crtl+E > Maxscript Open Shift+F11 > Save to File (Otherwise your keymap won’t be saved)

Note: Crimson Editor will save prior to executing, PSPad does not or I am not sure how to enable it to do so. So if you execute Maxscript Open prior to saving the file it will open a temp file instead of the current file.

-Eric


#22

Thank you Pixel_Monkey very much :thumbsup:


#23

Does any one know where I can find color coding for crimson editor?


#24

Looks like I have found colour coding for Max but I have not been able to get the bridge to work with Max 8. Has any one had any luck using crimsom editor with Max and the com bridge?


#25

MAXScript syntax coloring comes with the Crimson Editor installation.

Yeah. I followed these instructions.

Greets.


#26

I forgot to mention that I edited the maxscript7.reg file that comes with the mxscom distribution. This is the final content:

REGEDIT

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  1. Change the path in the last line of this file to point at your
;     current 3ds max executable directory, then
;  2. Double click this file in Windows Explorer
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; registration info MAX.Application (defaults to MAX.Application.8)

HKEY_CLASSES_ROOT\MAX.Application = OLE Automation MAX Application
HKEY_CLASSES_ROOT\MAX.Application\Clsid = {7FA22CB1-D26F-11d0-B260-00A0240CEEA3}
HKEY_CLASSES_ROOT\MAX.Application\CurVer = MAX.Application.8

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; registration info MAX 8.0

; (Application Object)
HKEY_CLASSES_ROOT\MAX.Application.8 = OLE Automation MAX 8.0 Application
HKEY_CLASSES_ROOT\MAX.Application.8\Clsid = {7FA22CB1-D26F-11d0-B260-00A0240CEEA3}

HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3} = OLE Automation MAX 8.0 Application
HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3}\ProgID = MAX.Application.8
HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3}\VersionIndependentProgID = MAX.Application
HKEY_CLASSES_ROOT\CLSID\{7FA22CB1-D26F-11d0-B260-00A0240CEEA3}\LocalServer32 = C:\3dsmax8\3dsmax.exe

The only thing that changes is the 7s for the 8s. Also, don’t forget to replace the 3dsmax path (at the end of the file) with your installation directory. And of course, you have to execute that file (the reg file).

Hope that helps.

PD: oh, BTW, if you want the crimson editor window to stay always on top, you can use some utility like this one.


#27

Paul,
The most up to date CE syntax files can be found here and previous version can be found here. Make sure that you install the script files in the max directory, change the registry entries, and setup up the shortcuts in CE. Personally I am switching to PSPad cause CE is no longer in development. There is a group making Emerald Editor, an open source version of CE, but nothing has been released so far.

-Eric


#28

Thanks guys I got it working. I didn’t know that CE isn’t being worked on any more. That is a shame as I have been using it for years for perl and other languages. Maybe I will have to switch as well.

I’ll have a look at it and see if I like it. I can’t imagine it is all that different.


#29

If you like Crimson Editor you will probably want to keep an eye on Emerald Editor here. Like I said they haven’t posted anything yet. There are a few quirks I don’t like about PSPad, but overall I think it is easier to navigate than CE. You could for example have multiple scripts in one project and on top of that multiple projects. Like CE it has syntax for all kinds of formats, but also allows for linking to an external compilier so you can compile from within PSPad. Plus looking at the Highlighter options it does seem to be a little more customizable.

Just my 2 cents,
-Eric


#30

I think I will take a poke at it next week.


#31

Also on the PSPad setup, if you want it to auto indent like CE you need to:
Highlighter Settings > Maxscript > Specification > Extended Indent Chars in the first box add ( in the second box add ).

This makes it indent when you insert a ( and go to the next line. Then it will remove the indent at the ).

Hope this helps,
-Eric


#32

Here is link how to setup UltraEdit for working with MAXScript com bridge:
http://www.scriptspot.com/Tutorials/MaxUltraEditInstructions.htm


#33

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.