Drughi Posted March 27, 2019 Share Posted March 27, 2019 Is there a way to confirm a display message with python? Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted March 27, 2019 Share Posted March 27, 2019 Yes. Check the docs. http://www.sidefx.com/docs/houdini/hom/hou/ui.html Quote Link to comment Share on other sites More sharing options...
Drughi Posted March 27, 2019 Author Share Posted March 27, 2019 (edited) Sorry for being blind. I cant find it. I want to "click away" / accept a display message. What function do you mean? Edited March 27, 2019 by Drughi Quote Link to comment Share on other sites More sharing options...
animknight Posted March 28, 2019 Share Posted March 28, 2019 Please refer to displayConfirmation/displayMessage. '''Prompt the user if they want to overwrite a file, and save it if they choose OK.''' if hou.ui.displayConfirmation("Overwrite the current hip file?", suppress=hou.confirmType.OverwriteFile): hou.hipFile.save() '''Prompt the user if they want to save, and save the hip file if they choose Yes.''' if hou.ui.displayMessage("Save the current hip file?", buttons=("Yes", "No")) == 0: hou.hipFile.save() -J Quote Link to comment Share on other sites More sharing options...
josich Posted November 1, 2019 Share Posted November 1, 2019 (edited) Hi, I just clicked 'Don't ask me again' in a Confirmation Message while I was testing a script and now I don't know how to make it appears again ( maybe in a preferences file?) Anyone knows ? Thanks, J. P.D. SOLVED There is a tab in preferences ( main menu), called 'Warning Dialogs' Edited November 1, 2019 by josich 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.