I'm trying to get the index of a selected polygon from a model (from the viewport) in a modal operator. I am using an event type to return the selected index.
Whenever I run the script and select the modal operator it gives me the correct index the first time. But, any other time, I have to re-run my script and the modal operator to update the selected index. This becomes really annoying very fast - as I don't want to have to keep re-running my script and modal operator. I want to be able to select different triangles at a time and return the correct indices without having to redo this.
I've looked into event timers a little bit, but will this actually help for what I want? I've been stuck on this for a few hours, but figured it'd just be better to get help.