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()
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()