Votes
0
Product:
iClone 7
Version:
7.41
Status:
Released in 7.7
Issue 5809
callback to mydialog.RegisterEventCallback(mycallback) hang iClone
When I add an event callback for a RLPy.RUi.CreateRDialog() all is fine. But after I load my ui file and set it to the dialog and try show the dialog. iClone hang and you need to force close it.

If you however step the code, using visual studio code, everything works fine. Ex I call RegisterEventCallback, load my UI file and set the dialog up and wait some and then step to show the dialog. Everything works fine.
OS: Windows 10
  •  3
  •  988
Submitted byThe-any-Key
1
COMMENTS (3)
The-any-Key
Sorry. Forgot to return True to allow the close process to continue. All works fine.
The-any-Key
Ok. Seem that it works if I remove:

[CODE]
    def OnDialogClose(self):
        print("CLOSE!")
[/CODE]

from the callback class. So there is something fishy with the close script.
The-any-Key
Did manage to get the show working (forgot to add the callback class in a global variable)
But it still hang when I close (press the x on the plugin widget)
1