QUOTE(Joojaa @ 09/08/07, 03:47 AM) [snapback]272982[/snapback]
Or
CODE
proc int isThisOneHidden( string $name ){
if (attributeQuery -node $name -ex visibility
)
return (!getAttr($name+".visibility"));
return 0;
}
itemFilter -byScript isThisOneHidden objectsThatAreHidden;
now your essentially made a filetr that can be called like this:
lsThroughFilter objectsThatAreHidden;
The bonus of this is that you can attach it to editors for example this would attach it to the main outliner
CODE
{
string $outliner = outlinerPanel -query -outlinerEditor outlinerPanel1
;
outlinerEditor -edit -filter objectsThatAreHidden $outliner;
}
Is there a way to always have this in the outliner using your algorithm? As in an option to "show all hidden" by clicking on an option in Outliner. I am asking because another concept that we added was "collidable objects", which is a node (any shade node) that has a "collidable" boolean attribute set to On. We created a tool for it, but that information is only used in that tool. It would be cool to always have it in the Outliner.