What's New in Director 8.5 > Using 3D Text > Lingo for 3D text > New Lingo for 3D text |  |

New Lingo for 3D text

In addition to working with most existing commands and properties, 3D text also adds some Lingo properties of its own. These properties allow you a more precise way to define the characteristics of the text than is possible using the Property Inspector.

These properties can be set while the text is in 2D mode. They'll have no visible effect until the text is displayed in 3D mode.

When you access the following properties for an extruded 3D text model that you created using the `extrude3D` command, you must refer to the model resource of the text. The Lingo syntax for this is as follows:

    member(whichMember).model[modelIndex].resource.3DTextProperty

For example, to set the `bevelDepth` property of the first model in cast member 1 to a value of 25, use the following syntax:

    member(1).model[1].resource.bevelDepth = 25

    Property
    Access
    Description
    Range orDefault

    bevelDepth
    Get and set
    Degree of beveling on front or back faces.
    Floating-point value from 1.0 to 100.0Default is 1.0

    bevelType
    Get and set
    Type of bevel.
    #none#miter#roundDefault is #miter

    displayFace
    Get and set
    Faces of shape to display.
    #front#tunnel#backDefault is to show all three faces

    displayMode
    Get and set
    Specifies how the text is displayed.
    #modeNormal#Mode3DDefault is #modeNormal, which is 2D text

    member(1).extrude3d(member(2))
    Not applicable
    Creates a new model resource in member 2 by extruding the text in member 1. Member 1 must be a text cast member.
    Specify an existing 3D cast member

    smoothness
    Get and set
    Number of subdivisions for curved outlines.
    Integer from 1 to 100Default is 5

    tunnelDepth
    Get and set
    Extrusion depth.
    Floating-point value from 1.0 to 100.0