child(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
child(indx : number) : Node;
Gets the child node at the specified index.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
indx | number | The index of the node in the children of this group to return. The first child is at index 0. |
Returns
Section titled “Returns”The node at the specified index.
Example
Section titled “Example”var myobject = mygroup.child(2);// myobject is the third child node in mygroup