Message 1 of 2
Custom PySide2 widgets docked on Startup
Not applicable
05-25-2018
03:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to have a docked widget on Maya at startup and currently I have been unable to do it. I have been able to get a docked widget on Maya through a shelf-button and it also seemingly runs error-free on startup through kAfterOpen and kAfterNew callback. My guess is that "onSetCurrentWorkspace" on startup trashes that all custom widgets.
I used cmds.workspaceControl command, dockControl command and even inheriting the widget with MayaQWidgetDockableMixin.
Thanks!