Grasshopper

algorithmic modeling for Rhino

Hi!

I think it is easy,but I don't know how.

How can I change the structure of the data tree to get 57 branches with 14 items in each of them?

Views: 602

Attachments:

Replies to This Discussion

that would make 798 curves right?

what about the rest 72 curves?

or maybe i haven't understood your question

Sorry for the unclear question!

Thanks!

I mean 58 branches and 15 items each, now there are two many sub branches.

no need to apologize. this could be a situation too.  David suggested the best way with path mapper.

my suggestion would be as the image.

cheers 

alex

Attachments:

By "Flatten", can you still keep the original structure of the tree?

I didn't try but I doubt that the new data tree has different items in different branches.

please check image.

Attachments:

That is amazing!

Thank you so much!

I guess that would be really useful for other green hands! 

i just realized how to insert pictures in posts.

You can use a path mapper with the mapping:

{A;B;C;D;E} -> {A;B;C;D}

You could even remove C and D as well as they are always zero. But you could also use the Simplify option to get rid of those indices.

--

David Rutten

david@mcneel.com

Thanks a lot!David!

That is what I want!

you also can use the shift paths component.

Or the trim tree component, a newer component that apparently does the same thing.

It has a better description and icon of what it does than shift paths, but doesn't allow wrapping (to trim the start rather than end). Neither component allows proper flattening when not all paths start with the same number.

Thanks!

Could you please leave an image of how to do this here?

shift paths and trim tree are the components I have never used before!

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