""" Package :- Free Script Module :- Free Script Description :- Hide/unhide the curves in current Maya viewport Usage :- Use the script as shelf or using Maya hotkey YouTube : - https://www.youtube.com/watch?v=0oEkk4tgYoA Creator :- Sanjeev Dhama """ import maya.cmds as cmds currentPanel = cmds.getPanel(wf=1) if currentPanel: queryJntToggle = cmds.modelEditor(currentPanel,q=1,nc=1) if queryJntToggle == 1: cmds.modelEditor(currentPanel,e=1,nc=0) if queryJntToggle == 0: cmds.modelEditor(currentPanel,e=1,nc=1)