---
title: "Setup Panel"
author: "DragonXin"
date: "2010-10-08T14:02:27Z"
tags: []
categories: ["非技术"]
slug: "setup-panel"
draft: false
lastmod: "2010-10-25T10:49:34Z"
id: 778648
url: "https://dragonxin.iteye.com/blog/778648"
---

Face Panel for setup(Update to Maya2009)

import maya.cmds as cmds
      
def createPanelWin():
    if cmds.window('faceWin', exists=True):
        cmds.deleteUI('faceWin', window=True)
        
    if cmds.window('faceWin', exists=True):
        cmds.windowPref('faceWin', remove=True)     
    
    cmds.window('faceWin', title='Face', widthHeight=(350, 500), toolbox=False)
    
    cmds.paneLayout()
    cmds.modelEditor('modEditor', grid=False, hulls=False, displayAppearance='smoothShaded', sel=False, camera='camera1')
    
    
    cmds.select('pSphere1', 'camera1')   #add controler and imagePlane
    cmds.isolateSelect('modEditor', state=True)
    
    cmds.showWindow('faceWin')
    
createPanelWin()