Grasshopper

algorithmic modeling for Rhino

Hello to all

I am very inexperienced in scripting and I am having trouble creating a component in a VB button.  I am having trouble setting up the variables for the inputs and outputs.  I know this is a very simple thing but this is my first written script... I have the script working in Rhino and now just want to transfer it to Grasshopper.

The script is to reduce the mesh.

I would like the following inputs:

       1. Mesh

       2. Percent to reduce 

       3. Boolean Toggle

Then the output would be the mesh.  I know this this is amateur stuff but I have to start somewhere...  I am not sure if you can call these commands through Grasshopper.  I would also be open to an easy way to do this through Grasshopper 

Any help would be very thankful.

Cheers

Views: 4658

Attachments:

Replies to This Discussion

First off RhinoScript is not the same as VB.NET, C#, or Python (your scripting options for Grasshopper).

That's all I know for certain.  Cheers!

Ahh yes this is true.. thanks for clarifying, I just figured that out.  Well perhaps we could think of a way in Grasshopper to accomplish this.

Here's a way to ReduceMesh in Grasshopper - but because the ReduceMesh method is not exposed via the RhinoCommon SDK, the script bakes the mesh object, runs the command, gathers the reduced mesh, and deletes the object... kind of a nasty hack. 

here's the script

Attachments:

Sweet,  thanks very much!

Userobject from tweaking your code Andrew. Appears in Mesh>>Utilities. John.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service