Is there a script editor for scripting in Grasshopper? My tutor mentioned about Monkey Script editor for Rhino, so I was wondering is there anything similar for gh as well - or maybe the one that is most used or something?
Thanks Angel!
Yeah my tutor had a look at the editor in Gh and said this lacks many editing options, you should try and find out which other one people generally use. Thats why I posted a question here.
Of course, VS provides much better debugging environment, but the GH component can be used just fine in most cases. here is a good strategy to work with GH scripting (and is good practice to code with any other environment for that matter):
- Build your code incrementally and test it a lot. Avoid writing big chunk of code and test all at once.
- Isolate functionality in separate functions whenever possible and test each function as you go.
- Use the Print(...) function to output data to the out window to check the values.
When I do the above, I rarely find a need to go to VS for debugging.
I'd say there are only a hand full of people that are using anything but the GH editor for GH scripts, but that's just my impression. I'd highly recommend downloading Visual Studio express if you can. It is a significantly better editor and I find myself more productive when I use it. The only downfall is that you can't really import anything that was written from an external source. You have to manually copy and paste it back into GH.
I personally use the built in editor almost all the time, despite the very stunted debugging ability, and somewhat misleading intellisense. I find it extremely useful to be able to interact with GH geometry directly, as the code ultimately can only be executed by the built-in editor. So even if you use VS Studio/Express, it will merely serve the purpose of better intellisense. I am yet to figure out how to use VS to debug if the problem is not in the syntax, but entirely in the geometry or the what I'm doing with it.