User Guide
420 Chapter 12: Methods
newCurve()
Usage
-- Lingo syntax
memberObjRef.newCurve(positionInVertexList)
// JavaScript syntax
memberObjRef.newCurve(positionInVertexList);
Description
Function; adds a #newCurve symbol to the vertexList of vectorCastMember, which adds a
new shape to the vector shape. You can break apart an existing shape by calling
newCurve() with
a position in the middle of a series of vertices.
Parameters
positionInVertexList
Required. Specifies the position in the vertexList at which the
#newCurve symbol is added.
Example
These statements add a new curve to cast member 2 at the third position in the cast member’s
vertexList. The second line of the example replaces the contents of curve 2 with the contents of
curve 3.
-- Lingo syntax
member(2).newCurve(3)
member(2).curve[2] = member(2).curve[3]
// JavaScript syntax
member(2).newCurve(3);
member(2).curve[2] = member(2).curve[3];
See also
curve, vertexList
newGroup
Usage
member(whichCastmember).newGroup(newGroupName)
Description
3D command; creates a new group and adds it to the group palette.
Parameters
newGroupName
Required. Specifies the name of the new group. The name of the new group must
be unique within the group palette.
Example
This statement creates a group called gbGroup2 within the cast member Scene, and a reference to
it is stored in the variable ng:
ng = member("Scene").newGroup("gbGroup2")