home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 July / com!online0702.iso / software / livemotion / DATA1.CAB / Automation / Scripts / Start Frames - Distribute.js < prev    next >
Encoding:
Text File  |  2002-05-13  |  2.4 KB  |  49 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. distributeStartFrames(arrayObjs, moveKeyFrames, alignToCTI, maintainStartOrder, topDown)
  19.     This utility will take an array of objects and distribute their start times 
  20.     across the timeline.  This will not affect the lifetime of the objects.
  21.  
  22. Arguments:
  23.     arrayObjs (array) - the array of LMObjects to align the lifetimes of
  24.     moveKeyFrames (boolean) - True: move the key frames with the lifetime. 
  25.         False: the key frames in place.
  26.     alignToCTI (boolean) - True: place the first object's start frame at the current 
  27.         position of the CTI. False: the start frame of the first object will be set to 0.
  28.     maintainStartOrder (boolean) - True: maintain the order of start key frames. 
  29.         False: the start order will be automatically sorted as determined by topDown.
  30.     topDown (boolean) - True: the order of sorting will be dependent upon the LMObject's
  31.         position in the array. The stagger order will be from the first object
  32.         in the array to the last object in the array.  False: the stagger order will be 
  33.         from the last object in the array to the first object in the array
  34.  
  35. ***************************************************************/
  36.  
  37. /***************************************************************
  38. To change the behavior of this script, make your changes below
  39. ***************************************************************/
  40.  
  41. distributeStartFrames(application.currentComposition.selection, true, false, false, false); 
  42.  
  43. /***************************************************************
  44. DO NOT EDIT BELOW THIS LINE
  45. ***************************************************************/
  46.  
  47. #include "../../Include/shellSort.js"
  48. #include "../../Include/TimeFrameTools.js"
  49.