I have some Genesis figures in the scene. I have select node with children in specific figure. I found the scripts here, similar to the solution of this problem. But I select only the first figure in the list. But I have to work with the second, third and so on. What I can do?
I tried to do so.
var Fig = Scene.findNodeByLabel( "Genesis (2)" ); // I try to work with 2th item in list
Fig.select( true );
if (Fig) {
var item = Scene.findNodeByLabel( "Left Hand" );// "Left Hand" in Genesis(2)
item.select( true );
// Selected children
var roots = Scene.getSelectedNodeList();
var n = roots.length;
for( var i = 0; i < n; i++ )
{
selectChildren( roots[ i ] )
}
function selectChildren( root )
{
var children = root.getNodeChildren( true ); //recurse
var n = children.length;
for( var i = 0; i < n; i++ )
{
var node = children[ i ];
node.select( true );
}
}
}