Grasshopper

algorithmic modeling for Rhino

This is a simple example of re-ordering lists by paths. By using a series of a series you can create an index list that steps by the number of paths that steps by the number of items in each path. Confusing in the picture, but it is easier to understand in the image. This example, of course, works for only paths that have the same number of items!

Views: 12533

Replies to This Discussion

Hello Michael,

Here is another way to do something similar.
Luis
Attachments:
wow, i think i would highly appreciated some kind of a basic tutorial on how to work with the "tree" components
Luis,

Your solution is extremely helpful. Thank you. I however do not understand the role of the "Parameter Viewer" in the definition. Is the viewer doing more than simply "viewing"? I suppose it is turning a list of points to paths? What does that mean? What exactly is a path?
Hello Sameer,
The Parameter Viewer is much more than a viewer of the tree. It will give you the trees branches or 'paths' as a list. A path is data type (in a way) which gives a name to the branches on the tree, much like on a list, we have item indexes which are integers, a tree has paths to indicate the organization of data. So, If we have an entire tree, and you wanted to select specific branches, you would connect the param viewer and filter out the paths you want with the Logic>List Components. It takes a bit of practice, but try the Tree Branch and Tree Item components to get used to using the Param Viewer to give you a list of paths.
hi Luis,

ive tried your script in mine but it seems it doesn't work.

It is strange but if i place the curves (in my case circles) manually, it works.

If i get these curved from an other source, it does not.

I think the problem comes form the "viewer" tool but i can not fix it.

i've isolated the error at the top of my gh file

Thanks for the help

Roberto
Attachments:
Roberto,

Now we have the Flip Matrix component (Sets > Tree > Flip Matrix), your task is much simpler. Just use that component. See the picture below.

thanks a lot! was so easy!

ciao
Yep, much easier since the addition of that component!
Hi guys,

If you use the Path Mapper method you are much more flexible. With this you can transform your trees in any way. Maybe David will still add an input field for the transfer of the divisor in the Path Mapper method. Path Mapper is already a great tool. After this it would be an extremly great tool ..;-)

saluti Renzo
Attachments:
thanks a lot renzo, a new world is in that tool!

ciao
Great!
That was exactly what I was looking for. Problem is that I dont really understand the logic! At least it works!

Thanks

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