User Guide
735
xtras
See
number of xtras
y (vector property)
Syntax
member(whichCastmember).vector.y
member(whichCastmember).vector[2]
Description
3D property; allows you to get or set the y component of a vector.
Example
This statement shows the y component of a vector:
vec = vector(20, 30, 40)
put vec.y
-- 30.0000
yAxis
Syntax
member(whichCastmember).transform.yAxis
Description
3D transform property; allows you to get but not set the vector representing the transform’s
canonical y-axis in transform space.
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 )