从maya获取到单独的panel放到自己写的界面上


import shiboken2
import maya.OpenMayaUI as mui
model_plane = pm.modelPanel("embeddedModelPanel#",)
ptr = mui.MQtUtil.findControl(paneLayoutName)
paneLayoutQt = shiboken2.wrapInstance(long(ptr), QWidget)
horizontalLayout_plane.addWidget(paneLayoutQt)

评论
  目录