Dan Ebberts (you’ll see a LOT of him in this expressions forum!) has a great site:
https://www.motionscript.com/
As for the brackets:
() is normally used like you would in ordinary maths, eg. (2*3)+10 is not the same as 2*(3+10)….or as part of After Effects’ syntax of naming properties.
[] is normally used for arrays, eg. the position property has two or three variables: [x,y,z] so to access just the x, you’d use: transform.position[0]
to access the y, use
transform.position[1]
{} are for Javascript-type things, such as if…then statements. In the example I provided, the {} isolate the different things, eg:
if (john_age > fred_age)
{
everything within
these curly brackets
happens if
john is older than fred
}
else
{
everything in here
happens
no matter
how long
it
rambles
on
for until you
get to the close
curly bracket
}
Hope that helps…I’m just kinda rambling while my Mac has a prolonged spinny-ball-of-death moment. Ah – it’s back to life!
– Paul