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 ...
Get After Effects Expressions now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.