678
Chapter 14: Properties
cameraRotation
Usage
member(
whichCastMember
).cameraRotation
sprite(
whichSprite
).cameraRotation
Description
3D cast member and sprite property; indicates the position of the default camera.
The default value of this property is vector(0, 0, 0). This is the rotation of the default camera in a
newly created 3D cast member.
Example
This statement shows that the rotation of the default camera of the cast member named Babyland
is the vector (82.6010, -38.8530, -2.4029).
member("babyland").cameraRotation = vector(82.6010, \
-38.8530, -2.4029)
See also
cameraPosition
,
autoCameraPosition
castLib
Usage
-- Lingo syntax
_movie.castLib[
castNameOrNum
]
// JavaScript syntax
_movie.castLib[
castNameOrNum
];
Description
Movie property; provides named or indexed access to the cast libraries of a movie, whether the
movie is active or not. Read-only.
The
castNameOrNum
argument can be either a string that specifies the name of the movie to
access or an integer that specifies the number of the movie to access.
This property provides functionality similar to the top level
castLib()
method, except that the
castLib()
method applies only to the currently active movie.
Example
This statement displays the number of the Buttons cast in the Message window.
-- Lingo syntax
put(_movie.castLib["Buttons"].number)
// JavaScript syntax
put(_movie.castLib["Buttons"].number);
See also
castLib()
,
Movie
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...