home *** CD-ROM | disk | FTP | other *** search
/ VCD Film, Television & An…on Creation Encyclopedia / mycd.iso / AEffects.31 / DISK2 / DATA.2 / mmscript / scale_all_layers.mm < prev    next >
Encoding:
Text File  |  1996-12-19  |  732 b   |  21 lines

  1. // Scale all layers - Version 1.1
  2.  
  3. // This script will scale all layers in the comp by the scale_factor, below.
  4. // It rescales position and scale. This is particularly useful if you resize a
  5. // comp, and want to scale all of your objects to fit it's new dimensions.
  6.  
  7. // LAYER                                        PROPERTY                    CHANNEL
  8. // ------                                        ----------                    --------
  9. // 1: doesn't matter                            doesn't matter                doesn't matter
  10. // 2: doesn't matter                            doesn't matter                doesn't matter
  11.  
  12. scale_factor = 0.5;            // change this to your new scale factor
  13. l = 1;
  14. while (l <= num_layers) {    // loop over every layer
  15.  
  16.     value(l, position) = value(l, position) * scale_factor;
  17.     value(l, scale) = value(l, scale) * scale_factor;
  18.  
  19.     l = l+1;
  20. }
  21.