User Guide

426
newCurve()
Syntax
vectorMember.newCurve(positionInVertexList)
newCurve(vectorMember, positionInVertexList)
Description
Function; adds a #newCurve symbol to the vertexList of vectorCastMember, which adds a
new shape to the vector shape. The #newCurve symbol is added at positionInVertexList.
You can break apart an existing shape by calling
newCurve() with a position in the middle of a
series of vertices.
Example
This Lingo adds 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.
member(2).newCurve(3)
member(2).curve[2]=member(2).curve[3]
curve, vertexList
newGroup
Syntax
member(whichCastmember).newGroup(newGroupName)
Description
3D command; creates a new group, newGroupName, and adds it to the group palette. You cannot
have two groups in the palette with the same name.
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")
newLight
Syntax
member(whichCastmember).newLight(newLightName, #typeIndicator)
Description
3D command; creates a new light named, newLightName, with the type #typeIndicator, and
adds it to the light palette. You can not have two lights in the palette with the same name.
The
#typeIndicator parameter has the following possible values:
#ambient is a generalized light in the 3D world.
#directional is a light from a specific direction.
#point is a light source like a light bulb.
#spot is a spotlight effect.
Example
The following statement creates a new light in the cast member named 3D World. It is an
ambient light called "ambient room light".
member("3D World").newLight("ambient room light", #ambient)