xAxis
Usage
member(whichCastmember).transform.xAxis
Description
3D transform property; allows you to get but not set the vector representing the transform's
canonical x-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 x-axis of ModCylinder is the vector (1.0000, 0.0000,
0.0000). This means that the x-axis of ModCylinder is aligned with the x-axis of the world. The
next line rotates ModCylinder 90° around its y-axis. This rotates the axes of ModCylinder as well.
The last two lines show that the x-axis of ModCylinder is now the vector (0.0000, 0.0000,
-1.0000). This means that the x-axis of ModCylinder now is aligned with the negative z-axis of
the world.
member("Engine").model("ModCylinder").transform.identity()
put member("Engine").model("ModCylinder").transform.xAxis
-- vector( 1.0000, 0.0000, 0.0000 )
member("Engine").model("ModCylinder").rotate(0, 90, 0)
put member("Engine").model("ModCylinder").transform.xAxis
-- vector( 0.0000, 0.0000, -1.0000 )
xtra
Usage
-- Lingo syntax
_player.xtra[xtraNameOrNum]
// JavaScript syntax
_player.xtra[xtraNameOrNum];
Description
Player property; provides indexed or named access to the Xtra extensions available to the Director
player. Read-only.
The
xtraNameOrNum
access or an integer that specifies the index position of the Xtra extension to access.
The functionality of this property is identical to the top level
Example
This statement sets the variable myXtra to the Speech Xtra extension:
-- Lingo syntax
myXtra = _player.xtra["SpeechXtra"]
// JavaScript syntax
var myXtra = _player.xtra["SpeechXtra"];
See also
Player,
xtra()
argument is either a string that specifies the name of the Xtra extension to
method.
xtra()
xtra 1097
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