Lingo Dictionary > T-Z > vertex

 

vertex

Syntax

member(whichVectorShapeMember).vertex[whichVertexPosition]

Description

Chunk expression; enables direct access to parts of a vertex list of a vector shape cast member.

Use this chunk expression to avoid parsing different chunks of the vertex list. It's possible to both test and set values of the vertex list using this type of chunk expression.

Example

The following code shows how to determine the number of vertex points in a member:

put member("Archie").vertex.count
-- 2

Example

To obtain the second vertex for the member, you can use code like this:

put member("Archie").vertex[2]
-- point(66.0000, -5.0000)

Example

You can also set the value in a control handle:

member("Archie").vertex[2].handle1 = point(-63.0000, -16.0000)

See also

vertexList