List.FilterByBoolMask bug?

dynamo
list-filter

#1

Hello.
I’m not sure if I’m doing something wrong, but it looks like List.FilterByBoolMask command is bugged.

It filters the list by given criteria just right, but problem starts, when I try to extract my results. For some reason a reference to a sublist returns an “The index is outside a given range” error.
I’m pretty sure the syntax is right, as it works with any other list with that structure.

I’d use List.FilterByBoolMas dynamo node, but unfortunately, I need to run it in a loop so using a code block makes it so much easier.

Any ideas how to overcome the problem or is it going to be fixed anytime in a future?
I’m using Dynamo 1.3.2 with some packages installed.


#2

If you try Node to code on the FilterByBooleanMask node, you will get something like pict below.
Even if your “result” is displayed as a nested list, it is actually a dictionary so it doesn’t have any index 0, but keys "in"/"out"


#3

Hi @esmariusz
Looks good to me:

I think your using Dynamo 1.3x. Try this:


#4

in Dynamo 2 works fine, update yours


#5

I have the same output as @esmariusz, but using “node to code” I get the same code block as @alvpickmans.

@Kulkul second picture works in dynamo 1.3.2 :slight_smile:


#6

result[“in”] works just fine :slight_smile:
Thanx for a fast reply


#7

@esmariusz Please mark the post as solved. You’re welcome!