O'Reilly logo

After Effects Expressions by Marcus Geduld

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3

Commands

You can give a dog English commands: Sit! Stay! Fetch! What if dogs understood JavaScript? If they did, you’d type out commands to them like this:

sit()

or this:

stay()

In JavaScript, commands are orders, telling After Effects to do something. And most JavaScript commands end with parentheses. Why? Well, what if they didn’t? What if commands looked like this?

sit

or this?

stay

How could the computer tell that these aren’t variables? Both commands and variables are words, but otherwise they are very different from each other. Variables store values; commands tell AE to do something. So there needs to be some kind of marker ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required