Grasshopper

algorithmic modeling for Rhino

Hi all,

I've been struggling on getting a specific branch from a data tree. It seems so simple but I just can't figure it out. What I have is a tree with 210 branches. What I want to do is to split that tree in 10 lists of 21 branches (So 1-21, 22-42 etc.)

Any tips? Thanks in advance.

Views: 15063

Attachments:

Replies to This Discussion

[Integer Divide] to get the partition paths and then [Replace Paths]

Thanks for the quick reply, but it is not exactly what i want..

The data tree I started with has 210 branches, and each branch has 7 items inside. I want to keep this structure, but select only branch 1-21 instead of all the 210 branches..

Try This...Code Below.

Attachments:

In the next version of Grasshopper you will be able to do this, but it still seems a bit clunky. Probably needs a new component to [Partition Trees]

I think the address is this for the pre-release:  tinyurl.com/gh090063

It is recommended that you wait until the official release

Attachments:

I've figured it out already. Here is my solution in case anyone wants to know.

Same logic but just be aware that in the next release of GH this approach will be broken.

You will have to use {} instead of () and " to " instead of "-" see my post above

Thanks, I'll keep that in mind..

Regards

Really like how simple your solution. But wanted to see if i could make it more parametric and useable on longer sets so i created this. When 0.9.63 comes the part in the 2nd white group can be removed and it should keep working.

Msg for David,

Is it possible to Have the Bounds component being able to put out either a double or an Integer so it can be used like the example above with out requiring removing the .0 with a Replace Text component.

 

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