Hello there,
I am working on a geometry nodes setup to create resistors (electronic parts).
Resistor can have between 3 and 6 bands, depending on the level of precision (see Wikipedia for details on the Electronic Color Code).
So, depending on the number of bands, certain settings on the geometry nodes modifier panel should not be displayed :
As you can see, i grouped the settings in various panels, and added "Panel Toggles" on the panels that should not always be displayed. The purple color indicates that this boolean panel toggles are controled by drivers.
As you might have guessed, it is the Band Count parameter that drives them all, e.g. with the Temperature Coefficient panel toggle :
Here, it is correctly evaluated, because Band Count == 6, so the panel toggle == True.
If i change Band Count to 3 :
All the panel toggles are correctly evaluated to False.
But... the panels are still displayed 🤔.
This past summer, i had used a similar setup to create my procedural chainlink fence, and displayed a panel for custom material selection, and do not remember it was a complicated thing to do. But the most baffling thing is that i went and checked my old file for some clues about how i did it back then, and...
[EDIT] I simply can't find how i did it, apparently not with a ternary condition and driver, because they do not change according to the material type selection.

The Blender Manual is not of much use (or i may be seriously dumb 😅) :
Any ideas on how i could make this work ?
Hi
Koala ,
Not sure, but maybe you used the Hide in Modifier Toggle, for the Socket:

Or for the Panel:

After some blender file archeology (i spent some time digging in my blender file from this summer), i realize that i was mistaken :
- Panel toggles are not for greying out or hiding subpanels.
- I don't know what they are for 😅
- To grey out a panel you have indeed to use a switch menu, like this :
If Band count == 6, then use the Color value from the switch menu, else color == Black
And here indeed, band count == 4, the Temperature Coefficient panel (and TC variable) are greyed out. Not hidden though, i still have not figured that out, but that's already better, you can see the input is "useless" in this context.
Strangely, there is no way to use a driver on the "Hide in Modifier" toggle, which would then completely hide the panel :
Add driver is missing here.
If i find the solution i'll post it here.