It seems that ‘Show Last Hidden’ is broken in Ext 2?
This script has stopped working with ‘showLastHidden’ in Maya 2016 Ext 2.
I cant live without this script its amazing. Anyone know why it doesn’t work or can offer an alternative?
Cheers!
/* This file downloaded from Highend3d.com
‘’
‘’ Highend3d.com File Information:
‘’
‘’ Script Name: ToggleVisibility v1.2
‘’ Author: Daniel Goupil
‘’ Last Updated: March 11, 2002
‘’ Update/Change this file at:
‘’ http://www.highend3d.com/maya/mel/?section=interface#1576
‘’
‘’ Please do not alter any information above this line
‘’ it is generated dynamically by Highend3d.com and will
‘’ be changed automatically on any updates.
*/
//By Daniel Goupil
//http://www.crazy-fox.com
//dgoupil@crazy-fox.com
//Add support to Show Last Hidden and Toggle Hide/Show with
//no selection for the showLastHidden
string $select[] = ls -sl;
string $current,$listKeeper[];
$listKeeper=$gLastHiddenSelection;
if(size($select)==0){
if(size($gLastHiddenSelection)>0){
int $j;
for($j=0;$j<size($gLastHiddenSelection);$j++){
if(objExists $gLastHiddenSelection[$j]){
if(eval("getAttr " + $gLastHiddenSelection[$j] + “.v;”)){
int $k;
for($k=0;$k<size($gLastHiddenSelection);$k++){
if(objExists $gLastHiddenSelection[$k])hide $gLastHiddenSelection[$k];
}
$gLastHiddenSelection=$listKeeper;
break;
}else{
showLastHidden;
$gLastHiddenSelection=$listKeeper;
break;
}
}
}
}else{
showLastHidden;
}
}else{
string $toHide[];
int $i=0;
for ( $current in $select ){
$viz = eval("getAttr " + $current + “.v;”);
if ( $viz == 0 ) {
showHidden -a $current;
} else {
$toHide[$i]=$current;
$i++;
}
}
if(size($toHide)>0){
hideKeepSelection($toHide);
}
}