Hiding Object from html

Hello there! We were able to make the function work! But we are running into an issue now.

Every time we use the hide/ show function it also hides/ shows all the materials that are inside of that node. So because other objects in the scene use the same materials, It hides/ shows things that we did not mean to.

Is there a way to limit the function to only objects and not materials?

I uploaded the scene here, https://multitaskr.shapespark.com/adu_studio_300sqft_test/
The object names we want to hide/ show are “300 PREMIUM STYLE”, “300 MEDIUM STYLE” and “300 STANDARD STYLE”.

Thanks a lot for your help.

@Multitaskr_Capital