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
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
Example
This statement shows the
vec = vector(20, 30, 40)
put vec.z
-- 40.0000
1100
Chapter 14: Properties
component of a vector.
z
component of a vector:
z
are not drawn.
yon
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers