Grasshopper

algorithmic modeling for Rhino

Raplace more than 1 value at the same time...possible?

Is it posible to replace more than 1 value at the same time??

lets say I have a list of numbers

0,12

0,13

0,17

0,56

0,58

0,59

0,83

0,86

0,89

and I wanna replace everything for 0,15_ 0,55_0,85 so I would end up with JUST 3 DIFFERENT POSIBILITES AND NOT MANY

0,15

0,15

0,15

0,55

0,55

0,55

0,85

0,85

0,85

is this possible?

Views: 458

Replies to This Discussion

HI Francisco,

 

you're using commas as decimal symbols I take it? Typically people use the English notation to avoid confusion between decimal symbols and set member symbols.

 

If you want to round numbers to an existing set using nearest neighbour rounding, then you can use the [Find Similar Member] component.

 

 

It's in the Sets tab, Sets panel. Note that if you plug the text panel directly into the [Find Similar Member] component it won't work because then it will try to match up text with numbers. You need to convert the "0.15" etc. into actual numbers first.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Any idea why this is happening? I am just pointing one out but it happens with so many values! I dont understand what is wrong! it should replace it for the 0.21 not 0.12

You need to make sure the data you put in is numbers, not text. Anything inside those yellow panels is text. Insert a number parameter into the upper wire same as in the lower wire.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

oh man...it was that easy? I was breaking my head thinking! thanks!!!

 

Nice thanks so much.....you are the man!!!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service