Grasshopper

algorithmic modeling for Rhino

Hi everybody.

when you need to check each branch of one data tree, do you have any convinient way to check it rather than typing the path one by one on the path key of branch button? I think that's a good ideal if we can use few sliders to creat the path, then we can change the path number very easily. the question is how to do it? anybody knows about it? thanks.......

Views: 9018

Replies to This Discussion

There's a Create Branch component (should probably be called Create Path, but that's a story for another day). Also, when you use a Param Viewer, it outputs a list of all the paths in a data tree, so you can use a slider to select one of them using List Item.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thanks, David. Big boy!

Create Branch Component

Attachments:

thanks, Danny. that looks much clear for me. 

Hi, what if I want D2 on the left to be a list of values, so that I can simultaneously check a list of branches? I tried this but it doesn't seem to work.

I'm not sure what the component [Reciprocal] does or what format its output is but I suspect that it is producing a long list of integers in which case the [Create Path] is turning this into a single Branch Address in the form {0;1;2;3;4;5;6;7;8;9;.......;N}

Try Grafting the input (I) Create Path by right clicking on it and selecting graft from the context menu

Thank you very much Danny, I used another way which seemed to have partially achieved what I wanted...In order to match the list of numbers in D2, I created a list of 0s and put it in D1...I'm not sure whether it is correct, but the green text box shows the list of paths I wanted.

...However, after I input the list of paths in the "Branch" function, I did not achieve the expected end result: the sequences of the items in the 2 red circles seem identical...

But what I expected rearrange the sequence of lists in the left circle: item 10 become item 0, item 12 become item 1, item 23 become item 2, etc.

Do you have any idea to solve this?

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