Hi, could someone please make a script for toogle show/hide motion trails in ALL viewports for Maya 2012?
On this forum I have also found toogle show/hide NURBS curves and it is very useful to me for animation, this is the code.
Curves_Toogle;
string $myPanel = `getPanel -wf`;
if(`getPanel -to $myPanel` == "modelPanel") {
if(`modelEditor -q -nurbsCurves $myPanel` == 0) {
modelEditor -e -nurbsCurves 1 $myPanel;
}
else {
modelEditor -e -nurbsCurves 0 $myPanel;
}
};
I need this because it saves me time, I do not have to go to Show-NURBS Curves - check, and again Show-NURBS Curves uncheck.
So if someone knows how to do this in MEL I would appreciate it, tnx.