![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 907](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516907.webp)
orthoHeight
907
Example
This sprite script uses the
originMode
property to set up a Flash movie sprite so its origin point
can be set to a specific point. It then sets the horizontal and vertical origin points.
-- Lingo syntax
property spriteNum
on beginSprite me
sprite(spriteNum).scaleMode = #showAll
sprite(spriteNum).originMode = #point
sprite(spriteNum).originH = 100
sprite(spriteNum).originV = 80
end
// JavaScript syntax
function beginSprite() {
sprite(this.spriteNum).scaleMode = symbol("showAll");
sprite(this.spriteNum).originMode = symbol("point");
sprite(this.spriteNum).originH = 100;
sprite(this.spriteNum).originV = 80;
}
See also
originH
,
originPoint
,
scaleMode
orthoHeight
Usage
member(
whichCastmember
).camera(
whichCamera
).orthoHeight
member(
whichCastmember
).camera[cameraindex].orthoHeight
sprite(
whichSprite
).camera.orthoHeight
Description
3D property; when
camera.projection
is set to
#orthographic
, the value
camera.orthoHeight
gives the number of perpendicular world units that fit vertically in the
sprite. World units are the measuring units for the particular 3D world. They are internally
consistent but arbitrarily chosen, and they can vary from one 3D world to another.
You do not need to specify the camera index (
whichCamera
) to access the first camera of
the sprite.
The default value of this property is 200.0
Example
The following statement sets the
orthoHeight
of the camera of sprite 5 to 200. This means 200
world units will fit vertically within the sprite.
sprite(5).camera.orthoheight = 200.0
See also
projection
Summary of Contents for DIRECTOR MX 2004
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...