I’m trying to apply the filters to a new schedule, but I’m stuck on how to make this work (I think it is possible, because I may have succeeded on this in the past, but I’m no longer sure).
I have 4 different filters to apply to 3 different schedules, the first three being individual to each schedule (blue lines), but the fourth must be applied to all of them (green lines).
In order to make it work I’ve simply split into two different nodes and it does achieve the result, but the script is getting clunkier and it needs a better solution than just duplicating everything I can’t fix.
Is it a combination of lacing and/or levels that I’m missing? I feel like I tried everything but it didn’t work.
I think what you’re after is schedule view should be @L1, schedule filters @L2, with auto or longest lacing (auto should default to longest as one of the inputs is a singleton).
I think this is going to be a limitation of Dynamo’s list broadcasting operations. I couldn’t get it to work with a single node, however you could do it something like this. In your case you may not need to chain the items together for the same result.
@Mike.Buttery That solution does work and it is already an improvement from duplicating everything (I had forgotten about list.deconstruct and was using first item/rest of items) but it doesn’t allow me to add more than 2 filters, which might be a need for the future.
Worst case scenario, I can make a list of results and split into “one filter for each schedule” and “one filter for all schedules” and apply it separately, which isn’t too bad…
Oh! This applies a full list to a single item by the looks of it. Does the tooltip for scheduleFilters indicating it takes a list of filters? If so @L1, @L3 and auto lacing might be right.
And @L1 and @L3 got me the individual filters on the first schedule, the second on the second, third schedule ignored. On auto, that is. Longest didn’t work either.
Oh crap. I misunderstood what you were after - sorry about that.
You need a list of schedules for each view. Right now you have a list of 3 scheduled and a list of one schedule. What you want is 3 lists of two schedules, so either change the data structure going into the node creating the schedule filters, or create them differently (the route I would go here) and combine the lists with a List.AddItemToEnd node. Then add the schedules using the @L1@L3 method (I think).
I can use the count of the schedules to make the list of filters have the same amount of items, then transpose and then AddFilters. That worked, thank you!