M_Mesh:Shape(id)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
id int32 Shape identifier - shape 0 is at the back of the stack; shape (M_Mesh:CountShapes()-1) is at the top < 9.5

Return value:

M_Shape a shape object
Access a shape in the mesh.

The id is the "depth" in the stack of the shape and, for any particular shape, this could vary over time (e.g. "raise shape" or "lower to back" will change the shape ids).

(Contrast this to M_Shape:ShapeID which gives a unique and fixed identifier for a shape.)

<< Back to M_Mesh