Grasshopper

algorithmic modeling for Rhino

Hello GH community.

While I am still learning GH, I am facing another issue. Please see attached image and gh file for what I am talking.


Thank you for your time, really appreciated.

Views: 1262

Attachments:

Replies to This Discussion

Hello Bizkit,

are you after this?

cheers

alex

Hello Alex

That is not what I wanted. Thank you for taking time look into it. What I want is like the ones on index_order.png.

Maybe I was not clear enough as what I am aftering.

What I want is to separate a list of values at a certain value. Then, do some modifications to the separated values, then, put them back with the order of the original.

In the GH file, you can see, zeros are what I want to keep, unchanged, the rest of the values did addition, then, put the zeros with the modified values in the order of the original order.

This could be a way to do it.

cheers

alex

Hello Bizkit, Alex,

If it's just an addition you want to do to some items you can avoid splitting the list and just do it using an expression like "if x is greater than 0 then add y to x, else return x):

Hello Alex and Nikos

Both of the solutions works. I learned a lot from you guys.

Thank you so much.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service