I’m using dynamo daily 0.7.1.23088 and I’m having a few issues.
First of all how do I use the “List.FilterByBoolMask” node?
I’ve tried feeding it “1” and “0” or “True” and “False” but I keep getting the following error:
Warning: List.FilterByBoolMask operation failed. Specified cast is not valid.
Also when I try to add the “Categories” node I get the following error:
Failed to load built-in type System.InvalidCastException: Unable to cast object of type ‘Dynamo.Nodes.Categories’ to type ‘Dynamo.Models.NodeModel’. at Dynamo.Models.DynamoModel.CreateNodeInstance(String name) Failed to create node ‘Categories’ (GUID: 3b1cd225-102b-432f-aa67-752bfb004857)
If I manually make a list of outputs from the “Boolean” node, the filter by Boolean operation works like expected. Any ideas why it isn’t working for the automatically generated Booleans?
I don’t think the bug is in the watch node. I removed all watch nodes and got the same error. Then I decided to remove the “IF” node and connect the “==” node straight to the filter node and everything worked as expected. Maybe there’s something wrong with the way I used the “IF” node
Hi Dimitar, List.FilterByBoolMask expects a list of boolean value, but the value you feed to IF node is string values “true” or “false” (in watch node string value won’t be put in “”). Could you remove " in code block node and try again?
Ritesh was right once again. Instead of trying to trick the “IF” node with strings, I should have fed it with Boolean values from the start. Dynamo does not fall for my trickery
However the if node is actually completely unnecessary because the operator nodes in the new dynamo can now process lists and give Boolean values straight away. So we can simplify things a bit: