Metahopper multiple group enable/disable problem

Hello,
I try to make script for turning on and off particular groups (components inside groups) with On/Off toggles. Unfortunately I don’t understand why data tree structure is not working in this case. I can only turn on and off all groups at once.


group_enable_disable_test.gh (19.4 KB)

if I delete all the groups in your gh file, it still shows one group there?

Strange :sweat_smile:
Try selecting all components and copy to new document. Worked in my case.

this is the way Andrew Heumann indicates the component should be used, as described at minute 5:24 of this video

original example file on how to use those (example 5) from food4rhino MetaHopper | Food4Rhino

05_Hide-Show_Enable-Disable.gh (13.1 KB)

applied to your groups:

group_enable_disable_test_inno.gh (17.3 KB)

it fails when no groups is enabled

1 Like

Thank’s! That’s exactly what I wanted, but right now I’m thinking about this issue when all groups are enabled. Metahopper disables False Boolean Toggle :sweat_smile:.


group_enable_disable_test.gh (18.9 KB)

EDIT:
I managed to fix this issue. When ObjFromGroup components imput was empty it somehow selected Boolean False Toggle and disabled it. I tricked it a bit, and using a Stream Filter, when the list of selected groups is empty, it connect a small, insignificant group, so the input is never empty

1 Like