All Projects → dantaeyoung → GrasshopperArsenal

dantaeyoung / GrasshopperArsenal

Licence: other
Rhino/Grasshopper components to share / play with.

Programming Languages

python
139335 projects - #7 most used programming language
processing
702 projects
java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Hy
24 projects
CSS
56736 projects

GrasshopperArsenal

Rhino / Grasshopper GHX components to share / play with.

If you'd like to add, please send a pull request! If you'd like to chat, I'm at @dantaeyoung on Twitter!

List of components

  • GrasshopperToFirebase: Use FirebaseListener to connect Grasshopper and Firebase!
  • PoseNet: Use PoseOSC to send realtime pose estimation data from your camera to Grasshopper!
  • FaceOSC: Use FaceOSC to send facial tracking data to Grasshopper!
  • reacTIVision: Use reacTIVision to detect fiducial tags and their movement!
  • PostUploader: Use C# to do a POST request to a REST api (namely, to upload a file to imagebin.ca).
  • ScreenshotTaker: Python-activated Rhino command to do ViewCaptureToFile.
  • LispHopper: Lisp (Hy), Python, and Grasshopper. What's not to like? LispHopper.gif
  • HungarianAlgorithm: Assignment problem between sets of points (for turning Owl T-SNE data to a grid) hungarian3.jpg
  • MetaDataWriter: Writing and reading metadata into Rhino geometry
  • SlackNotifier: Posting to Slack with Grasshopper & Slack Web API
  • TimerLocker: Enable/Disable timers with Grasshopper Boolean values TimerLocker.gif
  • GeometrySelector: Select Geometry with the mouse and send that info to others
  • SwivelFigures: Place scale figures and rotate them to align with camera, Sketchup-Style SwivelFigures.gif
  • JsonReader: Read JSON data from web APIS (and display lat/long info) JsonReader.gif
  • GisReader: Read GIS shapefiles as Rhino geometry (using localcode/finches)
  • SnippetTransferer: Using Andrew Heumann's Create Snippets code, send snippet as data SnippetTransferer.gif
  • FunctionalReduce: Reduce/Foldl in Grasshopper FunctionalReduce.PNG

Experimental / playful:

  • CameraTracer: Turns scribbles, captured via the webcam, into polylines CameraTracer.gif

Setup:

Before running the scripts,

  • Install IronPython: http://ironpython.net/
  • Run 'EditPythonScript' in Rhino; under Tools > Options, and in the 'Script Engine' tab, make sure that 'Frames Enabled' is checked.

Troubleshooting:

  • If you get the error: 'ScopeStorage' object has no attribute 'scriptcontext', Restart Rhino.

Note for future self about using libraries

Put this code at the start of your Python code to import libraries in '_LIBRARIES'.

## MAKE LIBRARIES IMPORTABLE ##
import sys, os
libraryPath = os.path.dirname(sys.path[0]) + "\_LIBRARIES"
if not libraryPath in sys.path:
    sys.path.append(libraryPath)
################################

Related:

Grasshopper Challenges: A set of challenges designed to teach Grasshopper by creating a set of active learning / problem-solving challenges -- learning-by-doing-and-solving, rather than learning-by-watching-videos.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].