1100
Chapter 14: Properties
Example
The first line of this example sets the transform of the model ModCylinder to the identity
transform. The next two lines show that the Y axis of ModCylinder is the vector (0.0000, 1.0000,
0.0000). This means that the
y
-axis of ModCylinder is aligned with the
y
-axis of the world. The
next line rotates ModCylinder 90° around its
x
-axis. This rotates the axes of ModCylinder as well.
The last two lines show that the
y
-axis of ModCylinder is now the vector (0.0000, 0.0000, 1.0000).
This means that the
y
-axis of ModCylinder now is aligned with the positive
z
-axis of the world.
member("Engine").model("ModCylinder").transform.identity()
put member("Engine").model("ModCylinder").transform.yAxis
-- vector( 0.0000, 1.0000, 0.0000 )
member("Engine").model("ModCylinder").rotate(90, 0, 0)
put member("Engine").model("ModCylinder").transform.yAxis
-- vector( 0.0000, 0.0000, 1.0000 )
yon
Usage
member(
whichCastmember
).camera(
whichCamera
).yon
Description
3D property; allows you to get or set the distance from the camera defining where along the
camera’s Z axis the view frustum is clipped. Objects at a distance greater than
yon
are not drawn.
The default value for this property is 3.40282346638529e38.
Example
This statement sets the yon property of camera 1 to 50000:
member("3d world").camera[1].yon = 50000
See also
hither
z (vector)
Usage
member(
whichCastmember
).vector.z
member(
whichCastmember
).vector[3]
Description
3D property; allows you to get or set the
z
component of a vector.
Example
This statement shows the
z
component of a vector:
vec = vector(20, 30, 40)
put vec.z
-- 40.0000
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...