Have you ever seen how easy is to create your own python node in Grasshopper? Python grasshopper nodes help boost your productivity allowing for extra or more effective Rhino API functionality. Minimise now you Grasshopper effort working with less nodes by taking advantage of Grasshopper Python scripting.
In Grasshopper, double left click with your mouse (in an empty area) and type "python". Then, select to create a GhPython Script node. Double click on top of the python node and write some code, or just copy-paste the code from this repository. Zoom in nearby the inputs and output, add and rename then accordingly. Voila!! Your new python code is ready to use!