def _on_maya_initialized(*args):
api.emit("init", args)
if cmds.about(batch=True):
logger.warning("Running batch mode ...")
return
# Keep reference to the main Window, once a main window exists.
self._parent = {
widget.objectName(): widget
for widget in QtWidgets.QApplication.topLevelWidgets()
}["MayaWindow"]
评论列表
文章目录