Like everyone, I’m WFH these days and have been getting used to the Mac version of Rhino on my home iMac. The interface is obviously different, but I’m missing certain features that make life a lot easier on my work Windows computer.
The Mac Grasshopper Python Script Editor interface as it is, is very simplistic. Firstly there is no top toolbar with 'File, Edit, Tools, …'—when we click on the PSE window the top menu bar simply reverts to the usual Rhino menu. Secondly, there’s no Output tab at the bottom. But most unfortunately, there doesn’t seem to be an autocomplete function for writing scripts as there is in the Windows version. Unfortunately, I’m not yet a complete whizz at writing python code, so not having these prompts take a lot longer.
The Rhino Python Editor is also missing that tab that lists all of the rhinosyntax functions, making it really cumbersome to verify the names of each function.
Are these functions simply missing for Rhino Mac, or are they hidden away somewhere? And if that’s the case, does anyone have a good workflow for using the Mac version of GH and Rhino with Python?
Sorry for the delayed response. Hopefully it’s not too little too late.
Yes, the code editors on Mac lag far behind their Windows counterparts. However, this is an area of very active development. @Alain is taking the lead on this and things are moving quickly. He can bring you up to speed better than I can.
One question I did have was which version of Rhino for Mac are you testing? The reason I ask is that Autocomplete is working for me in Rhino for Mac 6.24 (6.24.20079.23332):
Auto-completion in the GHPython component in Rhino for Mac isn’t ideal to say the least. It only works from time to time and is rather sluggish to respond, especially if your a fast typer.
I’d recommend using an external text editor that supports the Rhino scripting stubs, at least for larger scripts. I know of Atom (free), Sublime Text, PyCharm, and Visual Studio (free?), but there maybe others.
These editors have also many other great features that will make your life easier, like search and replace, general Python auto-completion, prettier themes, code suggestions, auto-save, etc.
Hi Alain, I have the same issue ( Rhino 6 ) iOs Catalina iMac, I tryed on Macbook Pro 2014 and iMac 5k and any of these wasn’t able to get autocomplete. Sometime it’s pop up but when i press backspace for mistake it’s not pop up again.
I wish to be fix soon because our studio is based on iOs and it’s very hard to start learning python with out this fiture. For me in the code looks like just blue words ( import, as ) and other code is just black.
Anyway big thaks for your work . I love Rhino, GH and Python
I can reproduce some of what you’re experiencing and we’re working on improving code completion in GhPython as well as other scripting components. Until then you’ll get better auto completion by running the EditPythonScript command.
For recording I use ScreenFlow by Telestream.
Hi - Pardon the thread resurrection, but I’m making my way through some python tutorials and am struggling with the current editor in mac: both in terms of features, and stability.
Are any updates to the editor coming under Rhino 7, or do I have to wait for Rhino 8 (just trying to plan a machine upgrade).