标签:
import maya.OpenMayaUI as omui import maya.cmds as cmds from shiboken import wrapInstance ptr = omui.MQtUtil.findControl(cmds.channelBox()) channelBox_widget = wrapInstance(long(ptr), QtGui.QWidget) layout = channelBox_horizontalLayout layout.addWidget(channelBox_widget)import maya.OpenMayaUI as omui import maya.cmds as cmds from shiboken import wrapInstance ptr = omui.MQtUtil.findControl(cmds.channelBox()) channelBox_widget = wrapInstance(long(ptr), QtGui.QWidget) layout = channelBox_horizontalLayout layout.addWidget(channelBox_widget)标签:
原文地址:http://my.oschina.net/zsjasper/blog/467955