Hello everybody.
I'm trying to write a small VB that would let me catch the state change of boolean toggle components, filtered by their specific nick-name.
The purpose is to have the opportunity to change the value of a transform component from several locations of the Grasshopper canvas : I have a rotate component that let me view my design opened r=pi/2 or closed r = 0.
I have many blocks of components to rule my design, so, from any place I'm working on, I use a pair of : booleanToggle + numSlider to remotely drive the opening state.
Toggles(named "ME") are connected to a cullPattern that allows filtering the associated numSlider(named "VAL") with "ME" = true.
It works this way but I need to toggle "ME" = false before to reach another canvas location and use another pair of "ME" = true + "VAL".
As I use that trick pretty often, it would be great If i could feed a VB with a list of booleans + a list of values, and just capture the booleans state change, whatever they are true or false, I will be able to manage who they are from their nickname ("ME_0",...,"ME_n") and retrieve from ("VAL_0",...,"VAL_n").
I have tried things like a loop whith :
Dim evH As Grasshopper.Kernel.IGH_Component.ObjectChangedEventHandler
evH.GetType
: that I am not able to manage, and also :
// Components(name :: category.subcategory {id}
// Boolean Toggle :: Params.Special {ad483f40-dc72-40dc-844d-c9e462c7d19f}
from the "Command: GrasshopperComponentList", that I can't find a way to access, as I don't have any documentation of Grasshopper's object hierarchy ...
Thanks for your help.
Tags: