How can you get the active frame index from a frame

jkopicz
2025-03-11
2025-10-14
  • jkopicz - 2025-03-11

    In my project, I have frames that I would like to read the current active index. I change the frame index using the onclick properties of a button, then change frame index. I need to do some logic based on which frame index is selected. Is there a way to read the current active index of a frame?

     
  • trusty-squire - 2025-03-11

    If you are switching a frame based on the "Switch Frame Variable", then just use a variable that is accessible to your program to set your active frame.

    If you're trying to see which is the active visualization, then use the "CurrentVisu" variable. Note you'll need to enable this by checking it on in the Visualization Manager settings.

    If it's neither of those, you'll need to be more clear on how you're project is set up.

     
  • rene2 - 2025-10-14

    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.

     

Log in to post a comment.