Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

maya.OpenMayaUI MQtUtil_findControl

0 REPLIES 0
Reply
Message 1 of 1
MaYa_people
358 Views, 0 Replies

maya.OpenMayaUI MQtUtil_findControl

I have a string of python plugins, when I run it, the window cannot be created correctly, there is no problem in the 2023 version, but the 2024 version runs incorrectly, is it because of which key codes have been updated in 2024? The following is regardless of script and error.

import os
import sys

if not os.path.exists(r'D:\Documents\maya\MayaSceneConverter'):
raise IOError(r'The source path "D:\Documents\maya\MayaSceneConverter" does not exist!')

if r'D:\Documents\maya\MayaSceneConverter' not in sys.path:
sys.path.insert(0, r'D:\Documents\maya\MayaSceneConverter')

import ConverterUI
ConverterUI.ConverterUI()


AttributeError: file D:\Documents\maya\MayaSceneConverter\ConverterUI.py line 756: module 'maya.OpenMayaUI' has no attribute 'MQtUtil_findControl'

def getDock(wrap, name, label):
if cmds.workspaceControl(name, query=True, exists=True):
cmds.deleteUI(name)
ctrl = cmds.workspaceControl(name, r=True, rs=True, floating=True, label=label)
# tabToControl=('ChannelBoxLayerEditor', 1)
# dockToMainWindow=("right", True)
qtCtrl = omui.MQtUtil_findControl(ctrl)
ptr = wrapInstance(int(qtCtrl), wrap)
return ptr

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report