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
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'],
>
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'
)