I need to change the time step mode from within the C++ plugin of a reader. I can achieve the functionality I need with python, using this python code:
GetAnimationScene().PlayMode = ‘Snap To TimeSteps’
but I want it to trigger when a user clicks a button on the GUI part of the reader. Is this possible?
I’m flexible in how to get this working. In order of preference:
Change play mode when user clicks “Refresh” button in reader GUI (Paraview)
Change play mode when user clicks another button on a custom toolbar (i.e. can I create a custom button that runs my one-liner python code?)
It would be nice if I could access the AnimationScene / play mode from within the C++ plugin reader code.
Thanks for the quick response! I assume I create a Qt plugin with a single button that triggers the functionality I want, either through python, i.e. the code I posted, or through C++, the Server layer that I can’t access from the reader? Do you know where I can find some examples or walkthrough of creating this?
You’re right! I’ve had dozens of questions about VTK, and the one problem that finally got me to create the account and post happened to be Paraview. I’m sorry. I’ll be on-topic next time. I really appreciate your help.