Groups
Groups have many of the same properties and commands as models, except that you need to
substitute the word
models, lights, cameras, or other groups.
Group properties
The properties of the group determine its particular appearance and relationship to the rest of
the 3D world.
Use these properties to work with groups:
Property
name
parent
child.count
transform
userData
bounding
Sphere
world
Position
pointAt
Orientation
496
Chapter 19
for the word
group
model
Access
Description
Get
Unique string name.
Get and set
This group's parent; either another object or the 3D
cast member itself.
Get
Number of children (but not grandchildren) of a
given group.
Get and set
Lingo transform object representing this group's
position and orientation relative to its parent's
position and orientation.
transform.position
position.
transform.rotation
rotation.
Get and set
A property list containing all properties assigned to
the group. Users can add, remove, get, and set
properties on this list.
Get
A list containing a vector and a floating-point value.
The vector represents the position of the group in
world space. The floating-point value represents
the radius of the bounding sphere that contains the
group and its children.
Get
Position of the group in world coordinates. A quick
shortcut for
group.getWorldTransform()
Get and set
A list of two orthogonal vectors,
[objectRelativeDirection,
objectRelativeUp]
groups
when writing Lingo scripts. A group can contain
gives the relative
gives the relative
, that control how the
pointAt()
method works.
Value
Any string.
An object or cast
member.
An integer.
Set: a transform
object.
Get: reference to a
transform object.
The default list
includes the
properties
assigned in the 3D
modeling tool.
User properties
are then added.
A list, with the
default value of
[vector
(0,0,0),
0.0]
.
A vector object.
position
.
A vector list.
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?