algorithmic modeling for Rhino
I haven't tested this, but you could try using the modulus operator (%) to divide by the item_count and get the remainder. This would mean that when the index exceeded the maximum it would 'start again' from the beginning.
In other words your lexical rule would be:
{A}(i) -> {A}((path_index + i) % item_count)
I would love to know if there is a way to do this without path mapper!
Thanks again!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by