User's Manual
136 Chapter 3
•
•
•
•
•
setLayerHandleY()
Sets the HandleY of the media layer with the specified index (if available).
Syntax
<object name>.setLayerHandleY(
<layer index>
<"position">
);
Parameters
The first parameter specifies the desired layer index (starting from zero).
The second parameter sets the selected layer’s attachment point on the x-axis. The default
is “Middle”. Other options are “Top” and “Bottom”.
Example
var image = new Media();
image.setLayerHandleY(2, "Bottom");
setLayerOpacity()
Sets the opacity of the media layer with the specified index (if available).
Syntax
<object name>.setLayerOpacity(
<layer index>
<value 0..255>
);
Parameters
The first parameter specifies the desired layer index (starting from zero).
The second parameter specifies opacity of the selected layer, with a value of 255 indicating
completely solid.
Example
var image = new Media();
image.setLayerOpacity(2, 128);
setLayerPixels()
Replaces the pixel data in a named layer of the target Media object with the pixel data from
a layer in the source Media object. Any attributes associated with the target layer are
preserved.
Syntax
<object name>.setLayerPixels(
<layer index>,
<Media object>
);










