I’ve been trying this on and off for a couple of years now (…) but I still haven’t found a solution.
Here is the small application I have https://miekeroth.eu/apps/buccal_mass.html
the tabs you see give additional information about the objects in the model. When clicked they follow annotations I have added to show the view I want. But I want more functionality: I want the objects to hide with a specific tab and objects colored accordingly. I know how to find the instances, I know how to find the materials, but I can’t (and really I tried) incorporate them into one action. I would love to have the same functionality as I made in this pdf (works only on a desktop or laptop in acrobat and is offline, hence the need) https://miekeroth.nl/wp-content/uploads/2020/01/Eledone-cirrhosa-beak.pdf
All the instructions and examples didn’t show me a solution and I would like to know if I am asking something impossible (what I can’t imagine) or that I have been looking in the wrong direction. I have a suspicion the solution is actually rather simple, but I’m not a programmer.
P.S. If you look at the code in the application you will see a lot of obsolete code. the way I work is test something by just adding it and make sure the initial code still works