top of page
Search
Writer's picturePatrick Gamble

Show & Hide NURBS Curves in MAYA Hotkey

It always annoyed me when i wanted to look at an animation i had to hide the NURBS curves to see what was beneath.


Thankfully if you use these lines of code and plug them into a hotkey you can hide and un-hide them at a touch of a button.


string $activePanel = `getPanel -wf`;

if (`modelEditor -q -nurbsCurves $activePanel` == 1) {

modelEditor -e -nurbsCurves 0 $activePanel;

} else {

modelEditor -e -nurbsCurves 1 $activePanel;

}



The great thing about this is that it's a toggle. So press it once and it turns off and press it again it turns back on. No need for 2 separate hotkeys.


You can use this on just about anything that can be displayed too, just replace the “nurbesCurves” with whatever it is you want to hide.



Show & Hide NURBS Curves in the Hotkey editor

Recent Posts

See All
bottom of page