Grasshopper

algorithmic modeling for Rhino

I have a data tree that goes more or less like this:

{19;0},{19;1},{19;2}.....{19;123}

I want to use path mapper to shift the path of each one so that it would look something like this:

{19;123},{19;0},{19;1}...{19;122}.

To do this, I used path mapper using theses masks:

source: {a;b}

target{a;b-1}

Obviously, the "b-1" is the root of the problem, but I'm wondering if there is an operation in path mapper that would allow me to wrap the numbers so that when it goes past zero, it would flip around. Any ideas?

Thanks

Views: 503

Attachments:

Replies to This Discussion

Hello Dennis,

Are you looking for something like this ?

Yea, I actually arrived at a similar solution using shift list. 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