1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

maya python visibility flags

Last updated at Posted at 2022-12-23
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()
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?