
456
orthoHeight
Syntax
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.
Note that you don’t 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
overlay
Syntax
member(
whichCastmember
).camera(
whichCamera
).\
overlay[
overlayIndex
].
propertyName
member(
whichCastmember
).camera(
whichCamera
).overlay.count
Description
3D camera property; allows both get and set access to the properties of overlays contained in the
camera’s list of overlays to be displayed. When used as
overlay.count
this property returns the
total number of overlays contained in the camera’s list of overlays to be displayed.
Overlays are textures displayed in front of all models appearing in a given camera’s view frustum.
The overlays are drawn in the order that they appear in the camera’s overlay list, the first item in
the list appears behind all other overlays and the last item in the list in front of all other overlays.
Each overlay in the camera’s list of overlays list has the following properties:
•
loc
allows you to get or set the specific position of the overlay’s
regPoint
, relative to the
camera rect’s upper left corner.
•
source
allows you to get or set the texture to use as the source image for the overlay.
•
scale
allows you to get or set the scale value used by the overlay. The scale determines the
magnification of the overlay; this property defaults to a value of 1.0.
•
rotation
allows you to get or set the rotation, in degrees, of the overlay.
•
regPoint
allows you to get or set the registration point of the overlay relative to the texture’s
upper left corner.
•
blend
allows you to get or set the blending of the overlay to an integer between 0 and 100,
indicating how transparent (0) or opaque (100) the overlay is.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...