I have been using this for so long I forgot where I got it from, I just googled again and just found it on a couple of forums copied and pasted, if anyone knows the real author I'd be grateful so I credit him/her, but here is the code.
Just add a script IDE pane in DAZ and paste it in, you can save it then for later use. When you want to unhide something just change the last false to true. Works on any DAZ assest that has multiple children. I have no idea if many people know of this but someone might find it handy.
Code:
var startNode = Scene.getPrimarySelection();
if ( startNode ) {
var nodes = [ startNode ];
nodes = nodes.concat( startNode.getNodeChildren( true ) );
for ( var n = 0 ; n < nodes.length ; n++ ) {
nodes[ n ].setVisible( false );
}
}