M_Mesh:Shape(id)

Version added: before 9.5

Access a shape in the mesh

ArgumentTypeDescriptionDefaultVer
idint32Shape identifier - shape 0 is at the back of the stack; shape (M_Mesh:CountShapes()-1) is at the top< 9.5

Return type (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.)

String "Shape" is found in the following scripts:

HSV colour picker (by hayasidist)

Paint Bucket + (by Danfield)

MR Path (by eugenebabich)

SS - Multi Layer Transform Points (by simplsam)

HS Shape (by hayasidist)

See all...