I want to find the closest point which also has a boolean attribute set
to true. I've tried a few things but can't seem to get it.
Thanks,
Ben
You can look up data at locations, so plug the output from Get Closest Points into a Get Data and get your Boolean attribute. You now have an array of Booleans.
Plug that into the Array port of Find in Array and plug a constant True into its Value port. The Index output will be the first index found, which is also the closest because the original array was sorted by distance.
Finally use the index and the original array of locations with a Select in Array node to get the location of that point.
gray
-----Original Message-----
From: softimag...@listproc.autodesk.com
[mailto:softimag...@listproc.autodesk.com] On Behalf Of Ben Rogall
Sent: 15 juin 2009 16:19
To: soft...@listproc.autodesk.com
Subject: Basic ICE array question
Ben