Grasshopper

algorithmic modeling for Rhino

How can I create a multiple choice list in grasshopper?

I want to make a list or something that allows you to select one of several geometries , the one you like , and then the chosen geometry will be morphed on a surface by the "surface morph" component. In this way, you can customize the surface.

I'm new in grasshopper and although I searched tutorials on lists and trees I don't find something similar to what I want to do.

I've tried this but it doesn't work:


Thank you very much.

Views: 4127

Replies to This Discussion

https://www.youtube.com/watch?v=UrP2NcbAqek

I want to do something like this but instead of having to go each time at set geometry I'd like to create a list to choose between geometry 1, geometry 2, geometry 3, etc.

Double click the canvas and type Value List to add a customizable menu you then right click on to Edit, and thus set what it displays as words and what values to actually output for each word:

Then use Stream Filter to collect various inputs you want to select from, and zoom in on it to make little plus signs appear on the component to allow you to add a third or more items as inputs:

I'm not sure why yours doesn't work. Post your script next time for better help. When you zoom in or hover over the little red message balloon, the actual error will appear. This forum is the only up to data "manual" for Grasshopper, so search away.

Your Item component also works, but you won't have control over the order of the inputs if you just connect three wires to its input node.

Ah, it's your Panel that's breaking the list somehow, not playing nice.

Hello Rosa,

It doesn't work because you're using a Panel as input for your List Item component.

Your Panel turns your geometry into text, so you're trying to plug text into a Brep parameter : it fails.

You need to connect your geometry directly into the List Item component or a Gate component as Nik suggests.

It works!!! thank you two :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service