User Guide

CHAPTER 14
416
Using Motion Math (PB only)
Writing your own scripts
The Motion Math language provides all the necessary statements, functions, and
operators for constructing both simple and complex scripts. To write your own scripts,
you should have some basic knowledge of programming and mathematics.
Motion Math scripts use the Motion Math language, a simplified version of the C
programming language. You can write scripts in the Motion Math script editor, or you can
write them in any text editor and then load them into the Motion Math script editor.
When writing scripts in Motion Math, the language element menus help you more easily
create statements. See online Help.
Note: To ensure that After Effects can properly run your script, make sure that the script’s file
size does not exceed 32K.
Saving a script
Once you have modified an existing script or written one from scratch, you can save it for
future use.
To save a script:
1 In the Motion Math window, click the Save button.
2 Type the name of the script you want to save. Scripts are saved with a .mm extension.
Learning more about Motion Math
Online Help includes more information about using Motion Math and the Motion Math
language reference.
UG.book Page 416 Wednesday, February 21, 2001 12:05 PM