Group
143
See also
Group
,
Light
,
Model
,
Model Resource
,
Motion
,
Shader
,
Texture
Group
Represents a model that does not have a resource or any shaders.
A group is the most basic node, and is merely a point in space that is represented by a transform.
You can assign children and parents to this node in order to group models, lights, cameras, or
other groups.
The most basic group is called a world, which is essentially synonymous with a 3D cast member.
You can create a reference to a group by using the
group
property of the 3D
Member
object. The
group
property gets the group at a specified index position in the list of groups. In Lingo, you use
the
group
property directly from the 3D
Member
object to create a reference. In JavaScript syntax,
you must use the
getPropRef()
method to create a reference.
The following example creates a reference to the first group of the 3D cast member
space
, and
assigns it to the variable
myGroup
.
-- Lingo syntax
myGroup = member("space").group[1]
// JavaScript syntax
var myGroup = member("space").getPropRef("group", 1);
Method summary for the Group object
fog
.
color()
projection
fog
.
decayMode
rootNode
fog
.
enabled (fog)
yon
Method
addChild
pointAt
addToWorld
registerScript()
clone
removeFromWorld
cloneDeep
rotate
getWorldTransform()
scale (command)
isInWorld()
translate
Property (continued)
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...