hornePyQT.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:Modular_Rigging_Thesis 作者: LoganKelly 项目源码 文件源码
def toQtObject(mayaName):
    """
    Convert a Maya ui path to a Qt object
    @param mayaName: Maya UI Path to convert (Ex: "scriptEditorPanel1Window|TearOffPane|scriptEditorPanel1|testButton" )
    @return: PyQt representation of that object
    """
    ptr = apiUI.MQtUtil.findControl(mayaName)
    if ptr is None:
        ptr = apiUI.MQtUtil.findLayout(mayaName)
    if ptr is None:
        ptr = apiUI.MQtUtil.findMenuItem(mayaName)
    if ptr is not None:
        return sip.wrapinstance(long(ptr), QtCore.QObject)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号