Grasshopper

algorithmic modeling for Rhino

I have split a list using dispatch, performed a few actions on one of the dispatched lists, and am now trying to merge the two back together.  I have run into the problem of acquiring a few extra zeros at the end of the paths of the manipulated data, so these branches will not merge with their respective branches from the other dispatched list (for example: {1;0} will not merge with {1;0;0;0}, etc...).  Is there a way to knock out these extra zeros so that the branches merge back together?

Views: 3560

Replies to This Discussion

Hi John

One way of doing this is by using: Logic > Tree > Path Mapper Component. Into merge A leave the current input,and for input B take current into list and first plug it in the path mapper component before pluging it into the B input. In the Path Mapper you will need to write {A;B;C;D;E} (i) > {A;B} (i). One letter for each number in the path.


Matt
Brilliant! That's exactly what I was looking for...thanks, Matt.

John
John,

The path mapper is a very useful tool. See the following discussion for more detailed info on how to use it.

http://www.grasshopper3d.com/forum/topics/path-mapper-component-what
Thanks, Sameer...I was planning on looking for some info on that later. Thanks for the help.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service