-
variable positions with slider control
I’d like to create an expression where I can control about 50 layers to move to specific places from a central point by use of a slider. here’s how I set up my comp.
1. all 50 layers will have an expression for Position which is linked to a slider control on a null layer (see expression code below).
2. when the slider value is at 0, all 50 layers need to be at the same position (on screen).
3. when the slider value is at 100, all 50 layers need to be at independent positions. (for instance, imagine a particle explosion)I have included the code I’m using for control values for [x,y]. however, all the layers obviously have the same position unless I can customize the code for each layer with an “if/then” statement, or something similar thereof. this is where my knowledge of scripting leaves off. when the slider is at 100, I don’t know how to tell AE that I want a specific layer to be at [-100,-250] and another layer to be at [-50, 425], etc.
if anyone can give me a quick lesson on variable [x,y] values, I’d appreciate it.
thanks![this_comp.layer("extrude").effect("Control").param("Slider"), this_comp.layer("extrude").effect("Control").param("Slider")]-Jared Neher