import pymel.core as pmc
def setShow():
panelList = cmds.getPanel( type='modelPanel')
modelPanelList = []
modelEditorList = pmc.lsUI(editors=True)
for myModelPanel in modelEditorList:
if myModelPanel.find('modelPanel') != -1:
modelPanelList.append(myModelPanel)
for i in modelPanelList:
cmds.modelEditor(i,
e=True,
controllers=False,
nurbsCurves=False,
nurbsSurfaces=True,
cv=False,
hulls=False,
polymeshes=True,
subdivSurfaces=False,
planes=False,
lights=False,
cameras=False,
imagePlane=False,
joints=False,
ikHandles=False,
deformers=False,
dynamics=True,
particleInstancers=False,
fluids=False,
hairSystems=False,
follicles=False,
nCloths=False,
nParticles=False,
nRigids=False,
dynamicConstraints=False,
locators=False,
dimensions=False,
pivots=False,
handles=False,
textures=False,
strokes=False,
motionTrails=False,
pluginShapes=True,
clipGhosts=False,
greasePencils=False,
pluginObjects=[
'gpuCacheDisplayFilter',False
],
manipulators=True,
grid=False,
hud=False,
hos=True,
sel=True
)
setShow()
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme