List.FilterByBoolMask doesn't work inside a custom node

I find this bizarre. My graph works fine as a graph, but when I turn it into a custom node it doesn’t work.

Working back through each step it looks like List.FilterByBoolMask is not working. The Boolean list fed to it is correct, the list fed to it is valid, but the result has not had the boolean value applied to it at all.

Is this a bug in Dynamo 1.0.0.1180?

Tried and didn’t have any trouble

The definition…

The Custom Node…

What version of Dynamo are you using?

One of the more recent dailies (ver 1.0.1.1334)

Just realized that the structures of your Element list and Bool list vary.

Should work if you do one of the following…

Change the Lacing on List.FilterByBoolMask to Longest

or

Flatten the Element list

or

Pass the Bool list through a List.Create node

I got through the first FilterByBoolMask by using your OTB nodes instead of Clockwork’s ‘Element.IsOfCategory’. But I think I’m stuck on another list problem.

I have a list of lists of elements on each level, and a list of values I want to apply to each value of each list:

list[0]
[0] value of element 1 on Level 1
[1] value of element 2 on Level 1
[2] value of element 3 on Level 1
…etc
list[1]
[0] value of element 1 on Level 2
[1] value of element 2 on Level 2
[2] value of element 3 on Level 2
…etc

list [0] replacement value all elements Level 1
list [1] replacement value all elements Level 2
list [2] replacement value all elements Level 3

 

This is probably pretty basic but how do I apply a list to each element of a sub-list?

Thanks for all your help Vikram. However I discovered none of what I though were problems actually were problems.

Sometimes digging deep is the wrong way to go. I took a step back and looked at what I was trying to do and solved it with a carefully placed List.Map outside of the custom node.