• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Production Bundle Techniques > Running a Motion Math Script

Running a Motion Math Script

Although script requirements can vary, they employ the same overall process. Because many Motion Math scripts use the property keyframes of one layer to calculate keyframes for another layer, you may need to set the keyframes for one layer before you run the script.

To run a Motion Math script:

1.
Set the work area over the frames for which you want Motion Math to create keyframes.

2.
Select a layer (Figure 16.94).

Figure 16.94. Set the work area and select a layer to run a Motion Math script on.


Depending on the script you run, this layer may serve as the target or source for the keyframes.

3.
Choose Layer > Keyframe Assistant > Motion Math (Figure 16.95).

Figure 16.95. Choose Layer > Keyframe Assistant > Motion Math.


By default, the Copy Values script appears in the script editor the first time you use it. Thereafter, the most recently used script will appear in the Motion Math window.

4.
To load a script, click the Load button (Figure 16.96).

Figure 16.96. To load a script, click the Load button.


An Open dialog box appears.

5.
In the Open dialog box, select a Motion Math script and click Open (Figure 16.97).

Figure 16.97. In the Open dialog box, select a Motion Math script and click Open.


The script you selected appears in the script editor section of the Motion Math dialog box (Figure 16.98).

Figure 16.98. Comment lines in the script include a diagram that helps you choose options in the pull-down menus.


In the script editor section of the Motion Math dialog box, a description and pull-down menu diagram can help guide your choices.

6.
In the Motion Math dialog box, select options from the Layer, Property, and Channel menus, according to the script you selected.

7.
If you want to, modify variables in the script, such as Scale Factor.

8.
Choose one of the following options:

  • To replace all keyframes in the work area with keyframes generated by the script, choose “Sample at” and enter a frame rate (Figure 16.99).

    Figure 16.99. To replace all keyframes in the work area with keyframes generated by the script, choose “Sample at.”

  • To change values of existing keyframes in the work area (without generating additional ones) choose Sample only at existing keyframes.”

9.
Click Apply to run the script.

The script generates keyframes automatically (Figure 16.100).

Figure 16.100. This example uses the gravity.mm script to automatically generate motion keyframes that simulate a bounce.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint