Chapter 18
462
Groups
Groups are collections of models and other objects that are formally associated with one another.
These associations can be created in your 3D modeling software or with Lingo. Each 3D cast
member has a default group called world, which is the cast member.
Groups simplify the rotation and translation of models by letting all members of a group move
together with a single command. A group has a name, a transform, and a parent, and can also
have children. It has no other properties.
The following commands and properties can be used to perform basic group operations:
Creating 3D text
To create 3D text, you first create 2D text, and then you convert the text to 3D.
To create 3D text:
1
Select Window > Text to open the text editor.
2
Select the desired font, size, style, and alignment.
Most standard fonts work well with 3D text. You might need to experiment to get
specific results.
3
Enter the text. (You can edit the text after you’ve entered it.)
4
Drag the text cast member onto the Stage.
You can either drag the cast member from the Cast window or drag the Drag Cast Member
button next to the Name text box in the Text window.
5
Click the Property Inspector button in the Director toolbar.
6
Click the Text tab in the Property inspector.
Command
Function
Returns
group.count
Returns the number of group objects included in
the cast member.
Integer.
group
(
name
)
Returns the group named
name
.
Returns the group object named
name
if it exists. Returns
void
if the
object does not exist.
group
[
index
]
Returns the group at the designated position in the
index. The index number can change if groups are
added or deleted.
Returns the group object at that
index number if it exists. Returns
void
if the object does not exist at
that index number.
newGroup
(
name
)
Creates a new group and adds it to the group object
list.
Returns a new group object with a
unique name. If the name isn’t
unique, returns a Lingo error.
deleteGroup
(
name
)
Deletes the group named
name
. Lingo references
to this group persist but can do nothing.
TRUE (1)
if the group named
name
exists.
FALSE (0)
if the group
named
name
doesn’t exist.
deleteGroup
[
index
]
Deletes the group with the given index number.
Lingo references to this group persist but can
do nothing.
TRUE (1)
if the group with this
index number exists.
FALSE (0)
if
the group with this index number
doesn’t exist.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...