ModelData:getNodeMeshes

Returns a table of mesh indices attached to a node. Meshes define the geometry and materials of a model, as opposed to the nodes which define the transforms and hierarchy. A node can have multiple meshes, and meshes can be reused in multiple nodes.


meshes = ModelData:getNodeMeshes(index)

Arguments

NameTypeDescription
indexnumber The index of the node.

Returns

NameTypeDescription
meshestable A table with the node's mesh indices.

meshes = ModelData:getNodeMeshes(name)

Arguments

NameTypeDescription
namestring The name of the node.

Returns

NameTypeDescription
meshestable A table with the node's mesh indices.

See also