Hello community,
does anybody know, if there is a way to preview geometry according to a certain parameter? I have a couple of objects with attributes saved within the attribute-user-text panel - one of them named “function”. Some of these objects have function A, some function B etc. I’d like to show them in different colors according to their function (e.g. everything with function A is shown red, B is blue etc.). It wouldn’t be a problem, if I knew how many different functions there are, but since I’d like to use this GH script on different projects (with different numbers of functions), I don’t think, I can create and use a sift pattern.
My attempt was to create a number of random colors according to the number of different functions (that already works), but plugging these into the Custom Preview component doesn’t give the desired output since it doesn’t look at the function parameter. Is there any way I can connect the visualization colors to the attribute-user-text parameter?
-Carina
hi @Carina
You can use eleFront for that in combination with Jswan (or without)
color by function.gh (6.6 KB)
color by tag.3dm (167.3 KB)
I realize you may not be ready to jump to R8 WIP but if you are there are some great new nodes that allow you to filter/group data by User Attributes and Type Attributes, it makes it really easy to do what you are talking about.
Thanks for the quick answer! Would you mind telling me which Elefront components you used? I’m normally working with E6 and yours seems to be version 5.2, which somehow doesn’t want to be installed. So I can’t try if it’s working. It might be though, that I was looking for something else, but I’d like to check, if I can use some of your ideas.
Since I’m not just working on my own devices, I can’t switch to the WIP version yet. But thanks for the teaser, looking forward to R8
Hi @Carina
You can update via the package manager.
Otherwise you could use Human for the time being.
color by tag.3dm (167.3 KB)
Ah, splendid! Is it preferable to use Elefront 5.2 instead of 6, since 6 is legacy version?