Maya设置Viewport显示对象类型

问题描述

maya拍屏时只显示特定类型的对象

解决方法

options = {
    "playblastOverrideViewport": True,
    "playblastShowCVs": True,
    "playblastShowCameras": False,
    "playblastShowClipGhosts": False,
    "playblastShowControllers": True,
    "playblastShowDeformers": False,
    "playblastShowDimensions": False,
    "playblastShowDynamicConstraints": False,
    "playblastShowDynamics": False,
    "playblastShowFluids": False,
    "playblastShowFollicles": False,
    "playblastShowGreasePencil": True,
    "playblastShowGrid": False,
    "playblastShowHUD": False,
    "playblastShowHairSystems": False,
    "playblastShowHandles": False,
    "playblastShowHoldOuts": True,
    "playblastShowHulls": False,
    "playblastShowIKHandles": False,
    "playblastShowImagePlane": False,
    "playblastShowJoints": False,
    "playblastShowLights": False,
    "playblastShowLocators": False,
    "playblastShowMotionTrails": False,
    "playblastShowNCloths": False,
    "playblastShowNParticles": False,
    "playblastShowNRigids": False,
    "playblastShowNURBSCurves": False,
    "playblastShowNURBSSurfaces": False,
    "playblastShowOrnaments": False,
    "playblastShowParticleInstancers": True,
    "playblastShowPivots": False,
    "playblastShowPlanes": False,
    "playblastShowPluginShapes": False,
    "playblastShowPolyMeshes": True,
    "playblastShowSelectionHighlighting": True,
    "playblastShowStrokes": True,
    "playblastShowSubdivSurfaces": True,
    "playblastShowTextures": False,
}

cmds.optionVar(intValue=options.items())
mel.eval("rebuildShowMenu;")

你可能感兴趣的:(python,maya)