I'm trying to open a modeler dialog from a Python plugin using a given .model3 file.
The problem is that the dialog closes immediately even though it seems to successfully load the model file.
I used the post below as a sample, which is pretty much the same but through the Python console:
Using the console does work, but through a connect (click) event from a plugin, the window closes immediately.
The dialog code:
dlg = ModelerDialog() dlg.loadModel('C:/BGTGenerator.model3') dlg.show()
How can I prevent the modeler dialog from closing or open it correctly from a plugin?