There’s currently not a way to do this but you could create a function that does this and then when you want a pop up you would simply use that function instead of the pop up node in polyscope.
You could do something like this:
Make an assignment in the Before Start section of the program and name the variable popupShowing and set it to False
Create a script file with the following code:
def my_popup(msg, title="Popup"):
popupShowing = True
popup(msg,title, False,False, True)
popupShowing=False
end
Then when you call this the variable will go True, once the user acknowledges the popup the variable will go False.In the function definition you will see that one of the arguments, title, has a default value. You can call the function with either just a message (msg) or with a message and a title such as
my_popup("This will use the default title")
my_popup("This uses a custom title", "Custom Title")
You can learn more about scripts with UR by downloading the script manual from the help site.
Is there any way to check if the robot has paused execution of the main thread due to a prompt or popup?
Obviously I can set a bool to true before the popup and low afterwards, but this gets really tedious when the program gets long.