Grasshopper

algorithmic modeling for Rhino

Hello

I want to check each list in a data tree for a boolean false value. I then want to replace the entire list with a single true/false. My problem is that each branch is of arbitrary length. Is there a way around this without resorting to scripting?

/Frans

Views: 2202

Attachments:

Replies to This Discussion

Look at this link.

https://api.ning.com/files/sADsGzPuhoDnqghrBp7Z*18V-OSLH5RiQSEf*wEF7w-AB*wVrvOyrx4337STlXdWvw4LGsLtCJpDE1*o3yUlKhPKkSol4JYT/Grasshopper.jpg__It was for a different but similar problem and I think contains what you need in it. It depends a bit on how you need to read the False values in a list, if there is two and you need to know that, it will be harder to do, but if it doesn't matter how many False values can be in the list you just need it to show False as a conclusion for the whole list just because it contains whatever number of False Values then the above link should work for you.

If it doesn't work I will take another look.
http://www.grasshopper3d.com/forum/topics/advice-needed-on-singling...

That other link didn't want to work, open the last image on the discussion page.
Frans,

One approach would be to feed the boolean data into Mass Addition component.

Since True = 1 and False = 0 you can compare the boolean total for each branch with the total number of items in the branch.

If the boolean total is less than the item total, a false value is present.

-taz
Thanks to both of you, the Mass addition method worked a treat!
There is allways a solution out there in parameter space :)
/Fr..

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service