Hi guys, I am trying to configure PyDev for Rhino.Python for Mac. I saw reisod was trying, but his post is from 08.2011. Did anybody have any luck? Is there any guidance I could follow? Thanks a lot in advance
The Library directory is hidden by default in Mountain Lion. Google around for how to get at this directory on your computer.
Does someone know the directory for the autocomplete on Mountain Lion? I don't seem to find it.
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
Hello I only have Rhino5 64bit installed on my office machine and would like to use scipy. Do you know if this works by now, or if there are any plans to make it work for 64 bit? Thank you! Chris
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
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().
Hey Steve, I've been meaning to ask. How does the ghpython component work in the context of the tree structures in gh. I.e. I know in C# you have to ensure you use the gh data trees to ensure you can plug your output into other components. Thanks. P
Great pointer! I was contemplating putting a simple sort algorithm into one of my scripts but this just saved me a bunch of time. Keeping this in my back pocket I am sure it will be useful.
I am not getting any auto complete success. I am using Eclipse 3.7.1 and the latest PyDev. I am going to stick to the Python editor in Rhino for now. It would be very nice to get the same response in an IDE. Thanks for getting things going in that direction.
beautiful !! this just saved me a lot of work !
Hello so I think I manage to make PyDev to work Properly in Ecplipse following Steve´s steps at least the auto complete functions and stuff I guess , my question would be the same is there a way to run scripts from ecplise to test them on rhino or the only way to do it is to save the .py file and load it from the rhino built in editor ?? Thanks
Hi Steve, Sorry to be a nuisance! I meant step 3 of the instructions on the enthought website. About the bootstraping! I'll give it another go! cheers Evert
You need to install ironpython. In step 2 above, there are instructions you need to follow to get numpy installed from enthought http://www.enthought.com/repo/.iron/
Hi Steve, Thanks for pointing out I was using the wrong libraries, doh!!! Now I'm stuck on step 3, where do I save the ironpkg-1.0.0.py so I can bootstrat it. When I type >ipy ironpkg-1.0.0.py --install, it says file . . . . .does not exists. Many thansk for your help on this, it is very much appreciated. Cheers Evert
Hi Evert, Make sure you have the same options set up as I describe in step 3. You need to be using libraries in IronPython instead of Python. This may fix the problem you are seeing. Thanks, -Steve
Hi Steve, I've followed your instructions above but keep getting the message "Could not add reference to assembly mtrand", if I try to append the lib, dlls and site pachages manually I get more errors. I'm running numpy - scipy 1.6.1 and Rhino 5 Version 5.0 (5.1.2011.1025, 25/10/2011) Beta SN: 4-1501-0106-100-0008870-64111 any ideas? Cheers Evert Python Code: # For now, we need to manually load mtrand before using numpy or scipy # I'm still trying to figure out why mtrand is not automatically getting # loaded when numpy/scipy imports it. If I can fix this, we won't need # the following two lines import sys sys.path.append('c:\Python27') sys.path.append('c:\Python27\DLLs') sys.path.append('c:\Python27\Lib') sys.path.append('c:\Python27\Lib\site-packages') import numpy import clr clr.AddReference("mtrand") import rhinoscriptsyntax as rs x_coord = [ 0, 1, 2, 3, 4, 5, 6] y_coord = [0.0,0.1,0.5,2.5,2.5,2.5,4.0] xyz = zip(x_coord,y_coord,[0]*len(x_coord)) rs.AddPoints(xyz) degree = 5 eq = numpy.polyfit(x_coord, y_coord, degree) fitfunc = numpy.poly1d(eq) fit_points = [] for i in range(61): x = i/10.0 y = fitfunc(x) fit_points.append((x, y, 0)) rs.AddPolyline(fit_points)
OSX PyDev Interpreter I've been working on trying to get eclipse up and running on OSX with PyDev. I'm also stuck at the interpreter but I thought I'd list a bit of where I'm at, in case others are working on it too - it might prove helpful. From what I understand, on OSX, the IronPython interpreter has to be called through Mono, and cannot be called directly. PyDev doesn't currently support Mono, which means that a straight up approach might be stalled. This issue was discussed on the PyDev forums here: http://sourceforge.net/projects/pyde.../topic/3418511 There was a PyDev feature request logged for this in November 2009, but seems to have been thus far overlooked: http://sourceforge.net/tracker/?func...96&atid=577332 I'm going to keep banging my head against this wall for a bit, as it would be really nice to work inside of a single IDE for Processing, Rhino, and Maya - but until then, at least Komodo is running.
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.
I posted the shapeways model loader code: github.com/Wzesk/Rhino-to-Shapeways I would love any feedback or advice on tuning it up...