3D Lingo Dictionary > L-N > meshDeform (modifier) |  |

meshDeform (modifier)

Syntax

    member(whichCastmember).model(whichModel).meshDeform.propertyName

Description

3D modifier; allows control over the various aspects of the referenced model's mesh structure. Once you have added the `#meshDeform` modifier (using the `addModifier` command) to a model you have access to the following properties of the `#meshDeform` modifier:

Note: For more detailed information about the following properties see the individual property entries referenced in the see also section of this entry.

face.count returns the total number of faces in the referenced model.

mesh.count returns the number of meshes in the referenced model.

mesh[index] allows access to the properties of the specified mesh.

Examples

The following statement displays the number of faces in the model named gbFace.

    put member("3D World").model("gbFace").meshDeform.face.count
    -- 432

The following statement displays the number of meshes in the model named gbFace.

    put member("3D World").model("gbFace").meshDeform.mesh.count
    -- 2

The following statement displays the number of faces in the second mesh of the model named gbFace.

    put member("3D World").model("gbFace").meshDeform.mesh[2].face.count
    -- 204

See also

`mesh (property)`, `addModifier`