Yes ideally I would love to be able
To batch create view filters within grasshopper and apply them across multiple views/templates
And appy actions to them- such as turn on/off or everything that matches a specific filter make this a colour etc.
So not so much writing parameter values but creating filters from scratch (or
Even applying pre existing ones) to a set of drawings. Then even further perhaps batch making filled regions.
I know this is more delving into the documentation side of things- as opposed to working with rhino geometry etc.
Thankyou for your time
And Thankyou for all your work on this project!
Hi, I’m working out some code in order to have basic functionality regarding filter creation.
For now, I’ve been able to create selection filters (as always, most of the trouble arises when you try to update inputs since I’m not able to replicate element binding, I don’t know how to handle different kinds of exceptions etc). Take it with a gran of salt.
You can also apply those filters to a view, although I haven’t delved into setting graphics settings for these active filters.
I will also try to do something regarding parameter-based filters, but I don’t know when I will be able to get back to it.
I also realized we’re missing rule components such as “begins with”, “Contains” etc. which are very useful in these cases, I can try to report it on Github.
Next thing to do is to be able to deactivate these filters in views (currently only possible to activate), then graphics modifications for these filters which is why you want to have them in the first place right?
Got it to work… somehow. I haven’t tested anything other than the scenario I set up specifically for this, so please don’t try to use this in any kind of production environment.
I need to learn a lot more about tree managing, how OOTB GH components work etc, in order to set up inputs correctly and take advantage of trees. For now, please use one branch per item, and don’t use uneven trees. That is, if you want to apply more than one filter for the same view, duplicate the tree as shown in the example.
Will try to make it work better over time, but for now I will need some time to study datatrees in GHPython.
Hi. First I want to ensure that my scripts work decently and for that I need to do quite a bit of cleanup and rethink all the stuff regarding datatrees, so no video for now. I’m also back from vacation, so I won’t be able to work on this stuff as much as I’d like to… anyway I will upload a cleaner version with instructions when it’s ready. Until then, try messing around with the definition using easy examples like 1 view, 1 filter, 1 override settings etc.