Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
MediaScript Objects and Methods 57 
• 
• 
• 
Example
var image = new Media();
image.load(name @ "peppers.tga");
image.blurMotionBlur(Angle @ 30, Distance @ 10);
image.save(type @ "jpeg");
c l o n e ( )
Copies one Media object into another. After a Media object has been cloned, both the 
original and the copy can be modified independently, with changes to one object not 
affecting the other.
Syntax
<object name>.clone();
Parameters
This function has no parameters.
Example
var original = new Media();
original.load(name @ "weasel.tga");
original.scale(xs @ 250, constrain @ true);
var copy = original.clone()
... 
c o l l a p s e ( )
Collapses a multi-layer (Photoshop) file into a single layer. This function always results in 
a 32-bit image. 
NOTE: 
This function supports the CMYK color-space if all layers in the image are CMYK.
Syntax
collapse(
[layers @ <"layer list">]
[PreserveAlpha @ <true, false>]
[IgnoreAlpha @ <true, false>]
[VisibleOnly @ <true, false>]
[likePS @ <true, false>]
);