User Guide
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.