decorative banner

Running and editing existing scripts (PB only)


    The following procedure outlines the overall process for loading and running a script. Note, however, that each of the prewritten scripts varies slightly in its application. Editing existing scripts makes it easy to create unique effects for your composition. After editing an existing script, make sure that you save the script to a different name so the original script stays intact.

To run a script:

  1. Open the composition and set the work area to the time span over which you want Motion Math to create keyframes.
  2. Select a layer.
  3. Choose Layer > Keyframe Assistant > Motion Math. The Copy Values script appears by default in the script editor the first time you start Motion Math.
  4. To run a different script, click the Load button, and locate the script you want to run.
  5. Select the script, and click Open. The script you selected appears in the script editor.
  6. Use the Layer, Property, and Channel menus to select the elements that will have keyframes generated or modified by the Motion Math script.
  7. Specify how Motion Math generates keyframes:
    • Sample At creates the specified number of new keyframes per second. To keep the number of keyframes manageable, type 10 or fewer.

    Note: When you choose Sample At, Motion Math deletes and replaces any existing keyframes in the work area for the specified property and layer. Keyframes outside the work area are not affected.

    • Sample Only at Existing Keyframes creates no new keyframes but changes the values of existing keyframes.
  8. Click Apply, and then preview the result.
  9. To modify or reapply the motion or effect, reopen the Motion Math window, change your selections in step 7, adjust the scale factor as needed, and then click Apply.
  10. To save the changes you've made to the script, click Save, and then type a new name for the script.
  11. Tip iconIn addition to specifying the number of new keyframes per second, you can reduce the number of keyframes by applying The Smoother. See Smoothing motion and velocity.