Did you try
field MFNode allnode []
root = browser.getNode("volumes");
for(i=0; i<root.children.length; i++) {
allnode[i] = root.children[i];
Quote:
}
Here I suppose that "volumes" is some kind of grouping node that have
children.
Also note that the assignment pass *reference*, not copies of the node; if you
need a copie (a new instance), you'll have to use the createVrmlFromxxx
functions.
Sylvain Carette
vrml designer-composer
Quote:
> Hi,
> Can somebody tell me how I can get all the children of a node ?
> Like
> Node root;
> Node[] Children;
> root = browser.getNode("volumes");
> Then I need all Children of this node, and that's where i am stuck.
> I was thinking of adding some useless child to root and then removing it
> back, so i can catch the children_changed event, but i seems so, you know,
> "omslachtig" in Dutch :)
> Thanks a lot,
> Gerry