07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADOBE DIRECTOR BASICS<br />

3D basics<br />

Lingo and JavaScript syntax script for 3D text<br />

In addition to working with most existing methods and properties, 3D text also adds some properties of its own. These<br />

properties give you a more precise way to define the characteristics of the text than is possible using the Property<br />

Inspector.<br />

These properties can be set while the text is in 2D mode. They have no visible effect until the text appears in 3D mode.<br />

When you access the properties listed in the following table for an extruded 3D text model that you created by using<br />

the extrude3D() method, you must refer to the model resource of the text. The Lingo syntax for this is shown in the<br />

following example:<br />

member(whichMember).model[modelIndex].resource.3DTextProperty<br />

For example, to set the bevelDepth property of the first model in cast member 1 to a value of 25, use the following<br />

syntax:<br />

member(1).model[1].resource.bevelDepth = 25<br />

Properties of extruder resources for text<br />

Property Access Description Range or Default<br />

bevelDepth Get and set Degree of beveling on<br />

front or back faces.<br />

bevelType Get and set Type of bevel. #none<br />

displayFace Get and set Faces of shape to<br />

display.<br />

smoothness Get and set Number of<br />

subdivisions for<br />

curved outlines.<br />

Note: The properties in the table above can be applied either to the extruder resource in a Text member in 3D mode, or<br />

to an extrude resource created in a 3D member by the textMember.extrude3d(member3D) function.<br />

Property of Text members<br />

Last updated 8/26/2011<br />

Floating-point value from 1.0 to 100.0<br />

Default is 1.0<br />

#miter<br />

#round<br />

Default is #miter for 3D text in a Text<br />

member and #none for extruder resources<br />

in a 3D cast member.<br />

#front<br />

#tunnel<br />

#back<br />

Default is to show all three faces<br />

Integer from 1 to 100<br />

Default is 5<br />

tunnelDepth Get and set Extrusion depth. Floating-point value from 1.0 to 100.0<br />

Property Access Description Range or Default<br />

displayMode Get and set Specifies how the text<br />

appears.<br />

#modeNormal<br />

#Mode3D<br />

Default is #modeNormal, which is 2D text.<br />

62

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!