I think I struggle with the same issue. I tried the currentVisu variable but this is the active Visualisation. I have a dialog with a frame with frame configuration like in the picture. I would like to use the index te be used to make a button look like it's pressed/selected.