Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support starting Pandora from maya.standalone #5

Closed
shiqinfeng1 opened this issue Jun 19, 2019 · 1 comment
Closed

Support starting Pandora from maya.standalone #5

shiqinfeng1 opened this issue Jun 19, 2019 · 1 comment

Comments

@shiqinfeng1
Copy link

I want to start Pandora from python scripts using mayapy.exe, like this:

import maya.standalone 
import maya.cmds as cmds
maya.standalone.initialize('Python')
...
cmds.loadPlugin( allPlugins=True )
Pandora.openSubmitter()
...

But error occurs in function Pandora_Maya_Functions.startup():

AttributeError: 'PySide2.QtGui.QGuiApplication' object has no attribute 'topLevelWidgets'

How to make Qt works?

@RichardFrangenberg
Copy link
Owner

RichardFrangenberg commented Jun 20, 2019

I just added support for mayapy in v1.0.3.8.
You can execute this in mayapy now to open the submitter:

import sys
from PySide2.QtCore import *
from PySide2.QtWidgets import *
QApplication(sys.argv)

import maya.standalone 
import maya.cmds as cmds
maya.standalone.initialize('Python')
Pandora.openSubmitter()
qApp.exec_()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants