Main
|
Resume
|
Showreel
|
Blog
|
Script
|
Contact
connexion
go to footer
expand all
|
collapse all
languages
class
All
JScript|XSI
Python|XSI
JScript|WEB
Python|Maya
All
Memo
learning
DDD
php
tool
keyboard tooltips
rig
Toogle Control Visibility
- keyboard tooltips - felixlecha
# Toogle Control Visibility import maya.cmds as mc # Get Panel with Focus panel = mc.getPanel( wf = True ) # Check Model Panel if not mc.modelPanel( panel, q = True, ex = True ): panel = mc.getPanel( type = 'modelPanel' )[0] curve_vis = mc.modelEditor( panel, q = True, nurbsCurves = True ) if curve_vis: curve_vis = False else: curve_vis = True mc.modelEditor( panel, e=True, nurbsCurves = curve_vis ) mc.modelEditor(panel, e=True, subdivSurfaces = curve_vis ) mc.modelEditor(panel, e=True, planes = curve_vis ) mc.modelEditor(panel, e=True,lights = curve_vis ) mc.modelEditor(panel, e=True,cameras = curve_vis ) mc.modelEditor(panel, e=True,controlVertices = curve_vis ) mc.modelEditor(panel, e=True,hulls = curve_vis ) mc.modelEditor(panel, e=True,joints = curve_vis ) mc.modelEditor(panel, e=True,ikHandles = curve_vis ) mc.modelEditor(panel, e=True,deformers = curve_vis ) mc.modelEditor(panel, e=True,dynamics = curve_vis ) mc.modelEditor(panel, e=True,fluids= curve_vis ) mc.modelEditor(panel, e=True,hairSystems= curve_vis ) mc.modelEditor(panel, e=True,follicles= curve_vis ) mc.modelEditor(panel, e=True,nCloths= curve_vis ) mc.modelEditor(panel, e=True,nParticles= curve_vis ) mc.modelEditor(panel, e=True,nRigids= curve_vis ) mc.modelEditor(panel, e=True,dynamicConstraints= curve_vis ) mc.modelEditor(panel, e=True,locators= curve_vis ) mc.modelEditor(panel, e=True,dimensions= curve_vis ) mc.modelEditor(panel, e=True,handles= curve_vis ) mc.modelEditor(panel, e=True,pivots= curve_vis ) mc.modelEditor(panel, e=True,textures= curve_vis ) mc.modelEditor(panel, e=True,strokes= curve_vis )