EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 143

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)

Related product manuals