I’ve been stuck all day trying to find solutions for an issue that I have.
I have a script that ends with a filtering node that filters a nested list that has two levels such that I get two IN and two OUT, as can be seen in img bellow. With the custom node it returns a mess while showing an error of “convert a non convertable…”, and it isn’t quite clear what the issue is, while the regular script outputs a clean list of two list from the IN.
Earlier on I had the issue of converting a non convertable and found the solution on the forum to filter by type and that treated the problem (I was trying to filter the elements of type Level by name so I ended up filtering out the types that were string).
So basically now I am still stuck with this error of the output of the custom node.
You have indicated levels as a list of lists of levels.
You are providing a list of levels.
This seems likely to be problematic, as the subsequent Python node would need to written process the list by taking a list of levels and then pulling each level.
However you are providing a list of levels instead and therefore the Python start to iterate over the list and wouldn’t find another list so… failure would be imminent.
On the matter as input as list or list of list, I managed to set up the node that it will work with both types using a recursive unwrapping, but I am still receiving the same result: the issue of nonconvertable error and mainly having the output from the filter dictionary being a mess, as seen in attached image.
Try using a single depth list as the input type for each - the structure of the inputs will mean you’re only testing wall N against level N instead of against the full set of inputs.