Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

Confused with array syntax

$
0
0

If I want to wiggle the X, Y and Z dimensions of a layer's position, I can do it with this expression:

[wiggle(3,4)[0],wiggle(4,5)[1],wiggle(5,6)[2]]

 

This addresses each dimension as an array member by index number.

 

But if I want to randomize the  dimensions, I have to use syntax like this:

[random(0,100),random(10,50),random(50,80)]

 

If I try to explicitly reference the array members when using the Random function, AE throws an error.

 

So how do I know which functions require addressing array members by index number and which functions require that I don't?


Viewing all articles
Browse latest Browse all 47983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>