Hey, this seems like it should just work. But it doesn’t and I don’t know why.
It’s simple : I have a flattened list of 16 views, and a flattened list of 16 ParameterFilterElements (which filters are all made by OOTB nodes)
Now when running this script it applies 4 filters that correspond to the floors/dependent views that both lists are grouped in, before flattening. The way i want it to work is just to apply the list of filters to list of views, one filter per view. Tried with different lacing modes - didn’t help
So i’ve tried to solve it with my friend, who actually knows Python and he helped me out a lot, but in the end I think we ended up with reverse-engineering the OOTB node “View.AddFilter” (as seen on screenshot below).
The result is the same as if I used OOTB node - it appends a number of filters corresponding to the levels of the views. This got me thinking - maybe because I try to add these filters to dependent views - which “parents” are tied to levels in project - is the answer why it keeps adding them sorted by level.
I’ve changed the node from Clockwork’s duplicate.as.dependent to just duplicate - now it does apply filters the correct way - but on independent views.
It’s okay, but is there a way to apply just one filter per dependent view?