View RSS Feed

Steve Baer

Komodo Edit on Mac and RhinoPython

Rate this Entry


Komodo Edit can be configured to recognize the rhinoscriptsyntax module which provides for editor features like autocomplete and function tooltips.
  • Download and start Komodo Edit - http://www.activestate.com/komodo-edit
  • On the menu, select Komodo->Preferences...
  • Expand "Languages" and select "Python"
  • In the Additional Python Import Directories click on the "add" button and navigate to
    /Users/<your user name>/Application Support/McNeel/Rhinoceros/MacPlugIns/IronPython/settings/lib
  • Click OK, it may take a minute for Komodo Edit to parse all of the files and generate autocomplete information, but once that is done you should be able to type your Mac Rhino python scripts with a little help from Komodo!!
Click image for larger version

Name:	komodosetup.png
Views:	269
Size:	69.6 KB
ID:	169
Tags: None Add / Edit Tags
Categories
Uncategorized

Comments

  1. reisod -
    reisod's Avatar
    Thanks for the setup Steve For OSX newbies like myself, the following should be helpful.

    In Lion, the relevant directory was:
    /Users/<your user name>/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/IronPython/settings

    Additionally, for autocomplete to work I also needed to add:
    /Users/johndosier/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/IronPython/settings/rhinoscript

    By default, Lion hides the user Library folder. To make visible, open the Terminal application and run:
    chflags nohidden /Users/<your user name>/Library

    Obviously <your user name> should be replaced with your actual user name for all of the above.
  2. raulct00 -
    raulct00's Avatar
    Steve: ¿Which library I have to add, in order to have the help function, that windows rhino 5 editPythonScript has?. It's the information displayed in a lower part of the IDE, it`s like having the help() method in every rs.command().
    Updated 07-14-2012 at 03:17 AM by raulct00
  3. Steve Baer -
    Steve Baer's Avatar
    KomodoEdit probably doesn't have this exact feature, but they may have something similar. I would look through the KomodoEdit help reference or ask the people at ActiveState about this type of feature.

    Thanks,
    -Steve
  4. larsp -
    larsp's Avatar
    Hi Steve

    This works fine with rhinoscriptsyntax in Komodo.

    Question: Do You know how create a link to System (.Net libraries in general), Rhino (RhinoCommon) and scriptcontext on OSX

    Lars
  5. miruoz -
    miruoz's Avatar
    Does someone know the directory for the autocomplete on Mountain Lion? I don't seem to find it.
  6. Steve Baer -
    Steve Baer's Avatar
    The Library directory is hidden by default in Mountain Lion. Google around for how to get at this directory on your computer.