but I can’t see where I go from there. I see there’s an engine.show_dialog() but I need to provide the QWidget dialog class and I can’t see how I would have access to that?
Any pointers? I feel like I’m either missing something basic, or this is much more complicated than I’m assuming.
You can’t launch an app from a context different from the engine’s current context. You would have to change the engine’s current context.
However, just because the publisher is launched in a certain context, doesn’t mean it needs to gather from or publish to the same context. The publish plugins are customizable so you could modify it to act in a different context.
I don’t mean to change the engine’s context, but I would to trigger the launch of the Publisher from somewhere other than the Shotgun menu (e.g. from a python call in the script editor, or from a custom plugin window). Is that not possible?