All is working great now, thanks Marcus

On Wednesday, October 12, 2016 at 5:41:36 PM UTC+2, Marcus Ottosson wrote:
> Ah, that’s interesting.
> qApp <> is the actively 
> running instance of a QApplication; you could alternatively call 
> QtWidgets.QApplication.instance() 
> <>. Maya is bound to 
> have just one, but it seems that, based on your description, 
> executes *before* Qt starts running (sometimes?).
> I would pass the entire thing, e.g. by wrapping it into a function, 
> through cmds.evalDeferred or Qt.QtCore.QTimer.singleShot, that should 
> give Qt enough time to catch up.
> ​

You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit
For more options, visit

Reply via email to