Skip to content

insert(...)

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.

insert(indx: number, node: Node): this;

Inserts a node into the group at the specified index.

ParameterTypeDescription
indxnumberThe index in the children of this group to place the node. The first child is at index 0.
nodeZ.NodeThe node to insert.

this

mygroup.insert(2, myobject);