Grasshopper

algorithmic modeling for Rhino

I've created a grid of uv frames on a surface, and now I'm trying to select and modify them one at a time. I tried using list item, but this persistently selects either the top or bottom three (out of a grid of six) with an index of 0 or 1. This is probably only a problem because I don't fully understand the concept of the index. Either way, I have a grid of surface frames, and I would like to work on each separately, is there a good way for me to do this?

 

Thanks!

Views: 13649

Replies to This Discussion

Usually the output from the division of a surface is a set of 'columns' i.e. for every division in the U direction a branch will hold all the Vs. Therefore if you try and select the 0 index of a list you will get all the 0 index Vs for every branch of U. To specifically pick one item from your data tree you are going to need the Tree Item Component where you specify both branch and item numbers.

branch = {0;0;0}

item = 0

would be the first item of the first branch.

Can you post the definition as it is so far?

 

Chris

You can also try using 'flatten' on the list of frames, which will turn them into one simple list rather than separate lists. This way, if you used list item, it would retrieve the one item, instead of retrieving one from each separate list.
That works great, thanks!

Hey guys,

I guess I have a similar problem

I have one set of n points on an ellipse, and another one, that has n / 2 number of elements. 

For every point from the 1st set, for example no. 0, i want to assign two points that happen to be "in between" , so no. 0 and 1. Any help ? I can make it by hand by list item for every point and flatten, but it works only for this particular amount of points, not when i make more of them by the number slider. Any help would be appreciated.

Cheers,

Attachments:

Are you just looking to weave the two lists of points into a single list?

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

Thanks for reply and help!

But I guess it seems that i didn't clarify my intentions. I wanted to create a set of curves, but with sharp endings. So i wanted to take those three points, and create a recurrent shape of a curve, like in a vaulting. This is what I could create, but it seems not to look as i imagined

Any ideas ? I will be grateful

Attachments:

Something like this?

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

Yes, thanks !

But one thing seems weird. I tried to redo that on my grasshopper in a different file, seems not to work... sorry for that...

Attachments:

I don't have time to look at your file right now, but note that Shift must have Wrap=True.

--

David Rutten

david@mcneel.com

Tirol, Austria

Thank you man, still so much to learn... 

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