User Guide
571
scale (transform)
Syntax
member(whichCastmember).node(whichNode).transform.scale
member(whichCastmember).node(whichNode).getWorldTransform().scale
transform.scale
Description
3D property; allows you to get or set the scaling component of a transform. A transform defines a
scale, position and rotation within a given frame of reference. The scale property allows you to
get and set the degree of scaling of the transform along each of the three axes. The default value of
this property is
vector(1.0,1.0,1.0).
A node can be a camera, group, light or model object. This command does not have any visual
effect on lights or cameras as they do not contain geometry. Setting the
scale property of a node’s
transform defines that object’s scaling along the X, Y and Z axes within the transform’s frame of
reference. Getting the
scale property of an object’s world relative transform using
getWorldTransform().scale returns the object’s scaling relative to the world origin. Setting the
scale property of an object’s parent relative transform using transform.scale defines the object’s
scaling relative to its parent node.
Example
This statement sets the scale property of the transform of the model named Moon to
vector(2,5,3):
member("Scene").model("Moon").transform.scale = vector(2,5,3)
See also
transform (property), getWorldTransform(), position (transform), rotation
(transform)
, scale (command)
scaleMode
Syntax
sprite(whichVectorOrFlashSprite).scaleMode
the scaleMode of sprite whichVectorOrFlashSprite
member(whichVectorOrFlashMember).scaleMode
the scaleMode of member whichVectorOrFlashMember
Description
Cast member property and sprite property; controls the way a Flash movie or vector shape is
scaled within a sprite’s bounding rectangle. When you scale a Flash movie sprite by setting its
scale and viewScale properties, the sprite itself is not scaled; only the view of the movie within the
sprite is scaled. The
scaleMode property can have these values:
• #showAll (default for Director movies prior to version 7)— Maintains the aspect ratio of the
original Flash movie cast member. If necessary, fill in any gap in the horizontal or vertical
dimension using the background color.
• #noBorder—Maintains the aspect ratio of the original Flash movie cast member. If necessary,
crop the horizontal or vertical dimension.
• #exactFit—Does not maintain the aspect ratio of the original Flash movie cast member.
Stretch the Flash movie to fit the exact dimensions of the sprite.