Blog / Insights

5 Things You Didn't Know You Could Do With Grasshopper!

Five lesser-known uses of Grasshopper: parametric images and textures, PDF files, turning images into curves, and importing and exporting DXF files.

Illustration showcasing five Grasshopper capabilities including parametric images, PDF creation, image vectorization, and DXF file handling

<< Grasshopper is a powerful visual programming tool that can be used for everything from art, architecture, engineering and product design. Even though it’s such a widely used piece of software, most of its power is still quite unknown to most of its users. This post will start to fix this as we bring you ”5 Things You Didn’t Know You Can Do With Grasshopper”. Let’s dive straight in! >>

1. Create Parametric Images & Textures!

Grasshopper definition converting a bitmap image with colored dots into a parametric texture applied to a sphere

The use of the Squid plugin (ShapeDiver Edition) enables us to create images from not only the geometry we create but also from other images and even from simple text. Beginning with a basic Rectangle for projecting the BitMap image, we then provide a set of instructions for the Image to be generated. Lastly, we need to provide input for Pixel density and count. After setting up the script, we can easily control various aspects of the image, particularly its colors, amount of objects to name a few.

Interestingly, these same images can also be used as textures for objects modeled in Rhino! Once this is connected to the Geometry and uploaded to ShapeDiver, you can instantly change and modify the texture on the entire geometry easily through custom sliders, in real time.

2. Create Parametric PDF Files!

Grasshopper definition generating technical drawings and specifications with dimensions as parametric PDF output

In the Squid plugin (ShapeDiver Edition), we have added a new component called Squid PDF. Once you have built the script with various image objects, the true potential of a “parametric PDF” starts to shine.

With this, we can build manufacturing drawings, generate invoice reports or create detailed CNC drawings. And the best part is the seamless integration with ShapeDiver. Any changes made to the model and the product details are instantaneously updated in the drawings!

3. Convert Images Into Curves!

Grasshopper script using the Rooster plugin to convert a raster bitmap image into a vector image with generated curves

Using the Rooster plugin and simply linking the BitMap Image outputs a set of clean curves that create a boundary around the entire bitmap image. But, wait, why would you want to get the curves from an image?

First, you can convert a raster image into a vector image, instantly. And a second, more interesting use case is the ability to integrate it into other scripts so that it can read and adapt to the new curve information. The example of the Voronoi pattern exemplifies this approach.

4. Import DXF Files

2D floor plan DXF file converted to 3D parametric model with walls and compartments using Grasshopper

With this function, we can easily send geometry information between Grasshopper files. The geometry can be curves, meshes, and objects. But the main advantage of this function is its ability to import layers, colors, and other associated data that is contained in the DXF file.

With the Building example, we can get a 2D DXF file, complete with its layers, objects, and curves, to a 3D object with thickness, completely inside Grasshopper. And since it is linked, any modification in the master DXF file will get instantly reflected in the 3D object. From 2D floor plan to 3D model, instantly!

5. Export DXF Files!

Grasshopper definition using OpenNest to optimize and export parametric 3D panels as DXF files for laser cutting

The major use case for the particular function is its ability to export files for CNC and laser cutting. In the example, using OpenNest plugin, we can easily create a DXF file of a parametric 3D model of a canopy and with the functionality, we can directly export the data in a DXF file for CNC-laser cutting.

Combined with the power of ShapeDiver, the DXF file is complete in all its aspects, with dimensions that are recognized by both AutoCAD and Rhino.

Bottom Line

We just barely scratched the surface of what’s possible with the power of Grasshopper and ShapeDiver. There’s a reason why this is the preferred CAD solution for many professionals out there!

Did you find this post interesting? Let us know if you have any other interesting thing that can be achieved with Grasshopper by tagging us on Twitter or Instagram or send us any questions/comments via our Forum !

How ShapeDiver works

ShapeDiver runs your Grasshopper definitions in the cloud and turns them into web apps anyone can use in a browser.

How ShapeDiver runs Grasshopper in the cloud

Related posts

All insights
  • Insights

    How the Divers Plugin was born

    Why a decade of Grasshopper scripts became the public Divers Plugin: to skip compilation delays on the web, share logic, and track changes in version control.

    Edwin Hernández

  • Product updates

    ShapeDiver & Rhino Compute Explained!

    Rhino Compute or ShapeDiver? What running Grasshopper online takes: servers, Rhino licenses, uptime, IP protection, scaling, performance, and SDKs.

    ShapeDiver

  • Insights

    Getting to know... Computational Design!

    What computational design is, who uses it, and what it can do, from automotive and AEC to apparel. A guest post by Christine Evans of Fictiv.

    Christine Evans

ShapeDiver

See what your own definitions can do

Upload a Grasshopper definition and see it running in a browser within minutes. Start a free trial, or talk to us if you'd like help deciding whether ShapeDiver fits your project.

Talk to our team

Your Business

How can we help?