![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 567](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720567.webp)
transform (command)
567
Example
The following statement sets the
topRadius
property of the model resource Tube to 0.0. If the
bottom radius has a value greater than 0, models using Tube will be conical.
member("3D World").modelResource("Tube").topRadius = 0.0
trace()
Usage
-- Lingo syntax
trace(
value
)
// JavaScript syntax
trace(
value
);
Description
Top level function; evaluates an expression and displays the result in the Message window.
The functionality of this method is identical to the top level
put()
method, which is also
available to both Lingo and JavaScript syntax.
This method can be used as a debugging tool by tracking the values of variables as a movie plays.
Parameters
value
Required. The expression to evaluate.
Example
The following statement outputs the value of the variable
counter
to the Message window.
-- Lingo syntax
counter = (_system.milliseconds / 1000)
trace(counter)
// JavaScript syntax
var counter = (_system.milliseconds / 1000);
trace(counter);
See also
put()
transform (command)
Usage
transform()
Description
3D command; this command creates a transform object that is equal to the identity transform.
The identity transform has positional and rotational components of vector(0,0,0), and it has a
scale component of vector(1,1,1).
If you need to store and then rebuild transform information, store the transform properties
(position, rotation and scale), then rebuild the transform by making an identity transform
followed by setting the position, rotation and scale using the stored data.
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...