Daz Script to hide all children nodes

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,557
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.

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 );

}

}
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.
 

DukeOfBourbon

Newbie
Jan 17, 2018
33
464
You can also use groups for that. Groups will propagate visibility to child nodes, so for example if you put a genesis model inside a group the child objects like hair, clothing, anatomy etc will be toogled on and off when the group is toogled.
 

recreation

pure evil!
Respected User
Game Developer
Jun 10, 2018
6,327
22,774
Dunno if it's the same, but I got it from .
 

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,557
Dunno if it's the same, but I got it from .
Yeah I saw that one ages after I found this one, dunno which one is better/easier but that dude has some priceless scripts on his site.
 
  • Like
Reactions: recreation