Re: [Maya-Python] Getting RuntimeError when trying to use confirmDialog

2019-06-14 Thread kiteh
Tried with the use of QMessageBox, and it is working fine. Initially I had thought this would work as I am calling the confirmDialog in frameEditied() (being first) and importRef() would be called on later.. Adding on, I tried to create the same prompt_dialog() in script editor, wrote 2 lines

Re: [Maya-Python] Getting RuntimeError when trying to use confirmDialog

2019-06-13 Thread Justin Israel
On Fri, Jun 14, 2019, 10:37 AM kiteh wrote: > I have 2 files - main.py and utils.py. > > In my utils.py, I have created a method: > def prompt_dialog(title, msg): >res = cmds.confirmDialog( > title=title, >message=msg, >button=['Yes','No'], >

[Maya-Python] Getting RuntimeError when trying to use confirmDialog

2019-06-13 Thread kiteh
I have 2 files - main.py and utils.py. In my utils.py, I have created a method: def prompt_dialog(title, msg): res = cmds.confirmDialog( title=title, message=msg, button=['Yes','No'], defaultButton='Yes', cancelButton='No', dismissString='No' )