List.FilterByBoolMask in CBN


#1

Hi all,

I’m going over some scripts of mine trying to compact them down and while doing so I stumbled upon a strange thing in the code block node. I’m trying to use the function List.FilterByBoolMask in a CBN, but it’s acting strange. The output of the square box doesn’t match the output of the “>” as you can see in the image below. The Watch node says it’s an empty list.

1

 

 

 

 

 

 

So I started fiddling around with the List.FilterByBoolMask and none of these ‘workarounds’ are working:

2

 

 

 

 

 

3

 

 

 

4

 

 

 

 

 

I tested it in both 0.8.0 and 0.8.1RC and both are giving the same result.

Can anyone help me or tell me what I’m doing wrong? Any advise is greatly appreciated.

 

Thanks in advance,

Marc

 


#2

Hi Marc,

The “List.FilterByBoolMask” acts similarly to a dictionary in other languages. You have to call the indices of the output by its key name similar to this:

2015-06-09_13-42-11


#3

Thank you very much Dimitar, I knew I was missing something real simple.