
clouds and expressions
2 months ago
I had a video camera, my macbook, and some time on a flight back from NY, so I shot some clouds and tried to learn some expressions stuff in After Effects before my battery died. No keyframes (except for the trackers), but lots of random expressions.
-
Vimeo: About / Blog / Developers / Jobs / Community Guidelines / Community Forums / Help Center / Site Map / Merchandise
/ Get Vimeo

Previous Week
seed = Math.floor(time/holdTime);
seedRandom (seed, true);
rnd = random(39);
thisComp.layer(rnd+1).position
the random(39) line means "pick a layer between 0 and 39, which are my tracker layers. Of course, there is no layer 0, so you see lower there is a +1 to make it between 1 and 40
What expression did you make the little text labels?
"[" + Math.round(transform.position[0]) + "," + Math.round(transform.position[1]) + "]"
Anything in the quotes is rendered as-is, then you use the + to add more text. The Math.round part is just taking the x and y positions and rounding them so there aren't any decimals.
So if you were to read this out loud it would say "Bracket plus x position plus comma plus y position plus end bracket"