home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 July / com!online0702.iso / software / livemotion / DATA1.CAB / Automation / Scripts / Start Frames - Align.js < prev    next >
Encoding:
Text File  |  2002-05-13  |  1.9 KB  |  44 lines

  1. /***************************************************************
  2. ADOBE SYSTEMS INCORPORATED 
  3. Copyright 2002 Adobe Systems Incorporated 
  4. All Rights Reserved 
  5.  
  6. NOTICE:  Adobe permits you to use, modify, and distribute this 
  7. file in accordance with the terms of the Adobe license agreement 
  8. accompanying it.  If you have received this file from a source 
  9. other than Adobe, then your use, modification, or distribution
  10. of it requires the prior written permission of Adobe. 
  11. ***************************************************************/
  12. /***************************************************************
  13. Author: Mary Obelnicki
  14. ***************************************************************/
  15.  
  16. /***************************************************************
  17.  
  18. alignStartFrames(arrayObjs, moveKeyFrames, alignToCTI)
  19.     This utility will take an array of objects and align their 
  20.     start frames depending on the set parameters.
  21.  
  22. Arguments:
  23.     arrayObjs (array) - the array of LMObjects to align the lifetimes of
  24.     moveKeyFrames (boolean) - If set to true, move the key frames with 
  25.         the lifetime. If set to false, the key frames in place.
  26.     alignToCTI (boolean) - If set to true, place the first object's 
  27.         start frame at the current position of the CTI. If set to false, 
  28.         the start frame of the first object will be left in place.
  29.  
  30. ***************************************************************/
  31.  
  32. /***************************************************************
  33. To change the behavior of this script, make your changes below
  34. ***************************************************************/
  35.  
  36. alignStartFrames(application.currentComposition.selection, true, true); 
  37.  
  38. /***************************************************************
  39. DO NOT EDIT BELOW THIS LINE
  40. ***************************************************************/
  41.  
  42. #include "../../Include/shellSort.js"
  43. #include "../../Include/TimeFrameTools.js"
  44.