i want my code to check if a selection has been made or not. not sure 100% how to do this. Idk if theres a way to see if someone clicks outside of the plugin menu interface or if theres a way to listen and check for mouse clicks globally and to see if a selection has been made.
basically what i want to do is disable buttons if nothing is selected and if something is selected then i enable those buttons… in order to do that i need to listen to mouse click or selection globally
any help into the right direction would help. thank you!