Example
This statement shows the world-relative transform of the model named Box, followed by its
position and rotation properties:
put member("3d world").model("Box").getworldTransform()
-- transform(1.000000,0.000000,0.000000,0.000000, \
0.000000,1.000000,0.000000,0.000000, \
0.000000,0.000000,1.000000,0.000000, - \
94.144844,119.012825,0.000000,1.000000)
put member("3d world").model("Box"). getworldTransform().position
-- vector(-94.1448, 119.0128, 0.0000)
put member("3d world").model("Box"). getworldTransform().rotation
--vector(0.0000, 0.0000, 0.0000)
See also
worldPosition,
go()
Usage
-- Lingo syntax
_movie.go(frameNameOrNum {, movieName})
// JavaScript syntax
_movie.go(frameNameOrNum {, movieName});
Description
Movie method; causes the playhead to branch to a specified frame in a specified movie.
This method can be used to tell the playhead to loop to the previous marker, and is a convenient
means of keeping the playhead in the same section of the movie while script remains active.
It is best to use marker labels for
cause frame numbers to change. Using marker labels also makes it easier to read scripts.
Calling
with the
go()
within a handler, the handler in which it is placed continues executing. To suspend the handler
while playing the movie, use the
to return.
playDone()
When you specify a movie to play, specify its path if the movie is in a different folder, but to
prevent a potential load failure, don't include the movie's .dir, .dxr, or .dcr file extension.
To more efficiently go to a movie at a URL, use the
the movie file to a local disk first, and then use the
to go to that movie on the local disk.
The
method sends the playhead to the previous marker in a movie, which is a
goLoop()
convenient means of keeping the playhead in the same section of the movie while Lingo or
JavaScript syntax remains active.
The following are reset when a movie is loaded:
keyDownScript
properties;
cursor()
timeoutScript
348
Chapter 12: Methods
transform (property)
frameNameOrNum
parameter loads frame 1 of the movie. If
movieName
play()
,
, and
mouseDownScript
and
puppetSprite()
is not reset when loading a movie.
instead of frame numbers; editing a movie can
method, which may be followed by a subsequent call to
downloadNetThing()
method with the
go()
and
beepOn
constraint
;
mouseUpScript
cursor
methods; and custom menus. However, the
is called from
go()
method to download
parameter
movieName
properties;
and
sprite
immediate
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