Sublime3dsMax

Sublime Text ist a beautiful, lightweight and very customizable editor for all kinds of programming and markup languages. It has a portable version that you can e.g. put into a Dropbox folder to synchronize your installed plugins and user settings over multiple computers.

As a side product of a student project together with my friend Johannes (who wrote all the complicated lowlevel stuff), I created a small plugin for Sublime that allows you to send MAXScript commands directly to 3ds Max. Before when developing MAXScript in Sublime you would have to switch to 3ds Max and run your script in its editor or press a button to launch a startup script or whatver; now you can simply evaluate your code directly from Sublime.

If you like MAXScript and Sublime, you will love this!

Get detailed installation instructions by following the download link:

If you use this script, be awesome and donate a few bucks!

Advertisements

12 Comments

  1. Hi Christoph, I just recently discovered sublime and really like it. The ability to execute maxscript code is fantastic. I’m looking for a way though to match the bracketing behavior to what I’m used to in 3dsMax.
    sublime creates brackets like so:
    fn theFunction =
    (
    body
    )

    In 3dsMax I’m used to this (and I’d like to have it in sublime too):
    fn theFunction =
    (
    body
    )

    Notice how the second bracket is indented in sublime but not in max. I’ve seen many indentation options in sublime but couldn’t find one that does what I want. Do you have an idea how to make this happen?
    Klaas

    1. OK, the comment has been formatted and my attempt to illustrate the bracketing behavior isn’t visible anymore. I’ll replace my spaces by periods:
      fn theSublimeFunction =
      (
      ….body
      ….)

      fn the3dsMaxFunction =
      (
      ….body
      )

      1. Hey Klaas, glad you like it! I just gave it a try and it behaves the same way for me in Sublime 2. I guess I didn’t really notice it as annoying as it is the same for me in the MXS editor and I guess I am kind of used to it 😉 I tried changing some of the Sublime settings but without success. The sublime forums geeks will most probably know how to set this up though! Cheers

  2. Hmmmm… doesn’t work for me:

    Traceback (most recent call last):
    File “.sublime_plugin.py”, line 362, in run_
    File “.Sublime3dsMax.py”, line 85, in run
    File “.Sublime3dsMax.py”, line 47, in sendCmdToMax
    File “.winapi.py”, line 529, in find_window
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xfc in position 8: ordinal not in range(128)

    …? Tried it Sublime 2.

  3. This looks great but the shortcut to send files or commands to 3dsMax doesn’t work for me. Any suggestions ? I looked through the python code but its beyond me to fix the problem 😦

  4. Looks like theres a problem with the python code

    Traceback (most recent call last):
    File “.sublime_plugin.py”, line 362, in run_
    File “.Sublime3dsMax.py”, line 88, in run
    File “.Sublime3dsMax.py”, line 47, in sendCmdToMax
    File “.winapi.py”, line 529, in find_window
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0x97 in position 50: ordinal not in range(128)

    Traceback (most recent call last):
    File “.sublime_plugin.py”, line 362, in run_
    File “.Sublime3dsMax.py”, line 85, in run
    File “.Sublime3dsMax.py”, line 47, in sendCmdToMax
    File “.winapi.py”, line 529, in find_window
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0x95 in position 71: ordinal not in range(128)

  5. This post is on 16 spot in google’s search results, if you want more visitors, you should build more
    backlinks to your website, there is one trick to get free, hidden backlinks from authority forums, search on youtube; how to get hidden backlinks from forums

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.