Grasshopper

algorithmic modeling for Rhino

Replace certain items in branches with other items

Hey all,

I have a problem related to replacing certain items in branches.

I want to replace any items less than 1 in in flexible number of branches.

My data structured in this way for example:

Branch 1

0 --> need to replace this with other number

2

5

7

Branch 2

3

6

8

0  --> need to replace this with other number

I know a component Cull Pattern that removes the items. But what I want is to replace those items with other item, lets say replace any number less than 1 with the number 180. 

Please suggestion, thanks in advance.

Views: 3278

Replies to This Discussion

Hi.

This could be one way.

Attachments:

Hey Kim, it works!! thanks a lot for the help.

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