Skip to content

A work in progress. A CSS library and HTML implementation reference for rendering Grasshopper 3D components in a browser.

License

Notifications You must be signed in to change notification settings

philipbelesky/webhopper

Repository files navigation

This project is a work in progress and is likely to be worked on very sporadically. Currently the CSS is setup for very basic forms of components and tooltips — it does not handle connections or custom component interfaces. That said the installation instructions below should work, and any pull requests are welcome.

Webhopper

A CSS library and HTML implementation reference for representing Grasshopper 3D UI elements in a browser.

Installation

Simply reference the dist/webhopper.css file into your app or import the sass/webhopper module.

Proper support for the hover tooltips requires some simple javascript — see library/app/webhopper.js

Proper support for drawing node connections is on the TODO list.

Development (Styles/Markup Documentation)

This uses Astrum to document and display the components. To build a copy of this site locally, first install project dependencies:

npm install

Then build the templates using Astrum:

npm run astrum init library

Then run the gulp task to start the local server:

npm run gulp

Development (Components Documentation)

This uses Metahopper and a Grasshopper definition to extract an XML file of all installed components. A script then translates it into the styles and markup needed for Astrum.

  1. Ensure the metahopper plugin is installed
  2. Open grasshopper and extractor.gh
  3. Run, save output XML as extraction.xml
  4. Open terminal, run translator.py

Acknowledgements

All design elements adapted from the user interface of Grasshopper 3D. Grasshopper 3D was developed by David Rutten at Robert McNeel & Associates.

Major thanks to Andrew Heumann and Harsh Gupta for their work on rhino.github.io which has been used here directly in many cases.

License

This code is available under the MIT license.

About

A work in progress. A CSS library and HTML implementation reference for rendering Grasshopper 3D components in a browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages