Animate your paint strokes
Posted: June 3rd, 2004, 11:24 am
This expression was created by Dan Ebberts NOTE : It will only work in AE 6.5
Here's a fun example.
Create a 200 x 200 layer and draw a generally vertical stroke (start at the bottom and draw up) that extends about half the height of the comp. Set "Paint on Transparent" to on. Apply this expression to the brush's position transform:
range = [50,50];
center = [width/2,height/2];
random(center - range, center + range);
Apply this expression to the brush's rotation transform:
p = propertyGroup(1).position;
center = [width/2,height/2];
if (p[0] < center[0]){
if (p[1] < center[1]){
random(90,180)
}else{
random(0,90)
}
}else if (p[1] < center[1]){
random(180,270)
}else{
random(270,360)
}
Duplicate the brush a bunch of times and preview.
Here's a fun example.
Create a 200 x 200 layer and draw a generally vertical stroke (start at the bottom and draw up) that extends about half the height of the comp. Set "Paint on Transparent" to on. Apply this expression to the brush's position transform:
range = [50,50];
center = [width/2,height/2];
random(center - range, center + range);
Apply this expression to the brush's rotation transform:
p = propertyGroup(1).position;
center = [width/2,height/2];
if (p[0] < center[0]){
if (p[1] < center[1]){
random(90,180)
}else{
random(0,90)
}
}else if (p[1] < center[1]){
random(180,270)
}else{
random(270,360)
}
Duplicate the brush a bunch of times and preview.