You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This app doesnt maintain its own window reference in maya. So if you run this code twice, it breaks with a "C++ internal object already deleted".
On Maya 2023.
import studiolibrary
studiolibrary.main()
To get around this, I store the window ref from studiolibrary.main() in a module-level global variable, and our launch method checks if that var is valid and calls "window.show()" instead.
window = None
def launchSL():
global window
if window is not None:
window.show()
import studiolibrary
window = studiolibrary.main()
Your documentation acts like this isn't required, very strange.
The text was updated successfully, but these errors were encountered:
This app doesnt maintain its own window reference in maya. So if you run this code twice, it breaks with a "C++ internal object already deleted".
On Maya 2023.
To get around this, I store the window ref from studiolibrary.main() in a module-level global variable, and our launch method checks if that var is valid and calls "window.show()" instead.
Your documentation acts like this isn't required, very strange.
The text was updated successfully, but these errors were encountered: