Animating Spray Paint and Stencil Effect in After Effects

Mon, Oct 8, 2007

After Effects, Tutorials

spraypainttutorial Animating Spray Paint and Stencil Effect in After Effects

So in this tutorial I’m going to show you how to create a spray paint effect using After Effects. It’s a fairly simple process but I’ve got a few tricks that you may not have thought of. Here is a sample video of what you’ll be creating:

Here are the AE project files.

So let’s begin.

1.) Open After Effects
Lets create a composition that is 720×540 and call it “final stencil”.

comp-settings-1 Animating Spray Paint and Stencil Effect in After Effects

2.) Make Paint
Now we are going to make a spray paint effect. There are lots of different ways to achieve a spray paint effect. I will show you two different techniques in this tutorial. First, create an adjustment layer that is the size of the composition and call it “paint 1″. Apply “vector paint” to this layer. Change your vector paint settings to look something like this.

vector-paint-settings-2 Animating Spray Paint and Stencil Effect in After Effects

Make sure the vector paint effect is selected and you should see a toolbar next to your comp window. Select the brush and paint on some spray paint similar to this.

 Animating Spray Paint and Stencil Effect in After Effects

3.) Animate Paint
Within the Vector Paint controls change the playback to “Animate strokes”. Once you do that the Playback Speed becomes available for you to change. Put it somewhere between 3.5 and 4. Now when you scrub in the timeline you should see the stroke you just made animating from start to finish.

NOTE: Where you are in the timeline when you make your first stroke using vector paint determines when the stroke starts animating. So if you were not at the begining of the paint layer when you made the stroke, you’ll notice that the stroke doesn’t start animating on the first frame of the layer. It starts animating when it reaches the point in the timeline where you first made the stroke.

4.) Roughen the Edges so it looks like spray paint.
Apply the “Roughen Edges” effect to the paint 1 layer. The trick here is to bring down the scale parameter in the Roughen Edges effect. Change your effect settings so you have Border = 20 and scale = 10. The “boarder” parameter controls how much of the edge it will roughened. Now our spray paint is made and your project should look like this:

controls-5 Animating Spray Paint and Stencil Effect in After Effects

vector-paint-roughen-4 Animating Spray Paint and Stencil Effect in After Effects

5.) Add Paint Drips
Let’s add in some paint drips for a little more realism and styling. Go and grab the Spray Paint vector pack and isolate a few drips and copy them into a new Illustrator or Photoshop document. I’ve copied my spray paint splatters from Illustrator into Photoshop as pixels, this way After Effects won’t be rendering these layers as vector art. Save your isolated drips as “drip 1, drip 2, and drip 3″ and import them into After Effects.

Now let’s add these to our comp. Drop one of the Drip psds into the timeline and solo the layer. Take the elliptical mask tool and draw a circle mask around main part of the spray paint. It should look like this:

drip-mask-6 Animating Spray Paint and Stencil Effect in After Effects

Now we are going to keyframe the “mask expansion” so the drip will animate. Keyframe the mask expansion to go from “-61 pixels” to about “74 pixels” with a duration of about 20 frames. Now when you scrub in the timeline you should see the solo’d “Drip” layer animating. Ok, click to solo button again so we can see our “paint 1″ layer. Depending on what colors you are using you may need to add a “Fill” effect to the “Drip” layer so it matches our original “paint 1″ layer.

5.a) Blend the Drip
Now that your drip animates and it’s the same color as our “paint 1″ layer let’s put them together. Here is how I did it.

match-up-drip-7 Animating Spray Paint and Stencil Effect in After Effects

5.b) Finish the Drips
Now do the same procedure to the other Drips and combine them with the “paint 1″ layer. You should now have something that looks like this.

red-paint-full-drip-8 Animating Spray Paint and Stencil Effect in After Effects

6.) Do It Again for Variation.
Now, we are going to start from step #2 and create a whole new paint layer. One thing you want to make sure you realize is that we need to create another composition because the
“Roughen Edges” effect will effect all the layers below it when it’s applied to an adjustment or solid layer.

Create a new composition and call it “paint vers 2″. Do the same thing that is in steps 2-4 just make the stroke from right to left instead of left to right. You should have something like this:

yellow-paint-9 Animating Spray Paint and Stencil Effect in After Effects

7.) Combine the 2 comps
Drag “paint vers 2″ from the project window into the “final stencil” composition. You should now have something like this:

drip-layers-10 Animating Spray Paint and Stencil Effect in After Effects
red-yellow-paint-11 Animating Spray Paint and Stencil Effect in After Effects

Now we are going to add drips to this paint layer as well. This time we can just duplicate the drip layers and add the “Fill” Effect to change their color so it matches the “paint vers 2″ color. Now you should have something similar to this:

red-yellow-fullpainton-13 Animating Spray Paint and Stencil Effect in After Effects

8.) Making the Stencil Comps.
Make a new comp that is 800×540 and call it “paper”. Add a new solid layer and put a rectangular mask on it and then rotate the layer a bit. It should look like this:

solid-trackmatte-14 Animating Spray Paint and Stencil Effect in After Effects

8.a) Create a paper texture

Now we are going to use this shape as a track matte for our texture. Go and grab a paper texture from our texture pack and import it into the project. Drag the paper texture into the “paper” comp. Make sure the paper layer is underneath the solid layer and set the solid as an “alpha matte”. Now your paper layer should be using the solid layer as track matte. You can scale and position the paper layer to your liking.

paper-trackmatte-15 Animating Spray Paint and Stencil Effect in After Effects
paper-track-matte-16 Animating Spray Paint and Stencil Effect in After Effects

8.b) Make a “Stencil” comp
Make a new comp that is 800×540 and call it “stencil”. Drag the “paper” comp into this comp. Now this is where we make our stencil. As you can see, I’ve used the Go Media logo as my stencil, but you can use practically anything. It’s probably best to use something that’s vector, like an illustrator file or a text layer within After Effects. This way you can use the alpha channel as a track matte. So create some text, or use the Go Media logo and on the “paper” layer select “Alpha inverted Matte” Now the Go Media logo, or your text should be cut out of our “paper layer”. Now you should have something like this…

gomedia-logo-trackmatte-17 Animating Spray Paint and Stencil Effect in After Effects

8.c) Make More Spray Paint
So here is where I show you another way of making spray paint. This technique is less mechanical and seems more realistic to me. Create a black solid that is 400×400 and put a circular mask on. Now apply the “scatter” effect to the black solid layer. Set the scatter amount to around “70″.

Now we are going to animate the mask expansion to create the “spray on” effect. I’ve keyframed mine from -135 to -18 with a duration of about 5 frames. I also dropped the opacity down to about 80%. Once you have done this once, duplicate the layer and move the position to the next point you want to paint. You’ll also want to offset the duplicated layer in the timeline. Do this over and over until you have completely painted on your stencil. You’ll notice that I also used a “Drip” layer to add a little bit of style and realism to this comp. Here is how i did it.

logo-paint-stencil-19 Animating Spray Paint and Stencil Effect in After Effects

gostencil-paint-covered-20 Animating Spray Paint and Stencil Effect in After Effects

stencil-paint-layers-18 Animating Spray Paint and Stencil Effect in After Effects

8.d) Create the Bottom Comp
Create a comp that is 800×540 and call it “Bottom”.
Drag in the “stencil” comp and the Go Media Logo into this comp. Draw a rectangular mask on the stencil layer that subtracts all the paint and is the same size as our original paper comp. This will probably take a little manual tweaking. Make sure the text is in the same place as it was in the stencil comp. You can copy and paste the position attributes to make sure they are the same.

stencil-mask-cutout-21 Animating Spray Paint and Stencil Effect in After Effects

stencil-mask-gologo-22 Animating Spray Paint and Stencil Effect in After Effects

8.e) Create a “no paint” comp.
In the project window highlight the stencil comp and hit “comand+d” to duplicate that composition. Then double click on it to open it up. Then change the comp name to be “no paint”. Then delete all the paint layers so you just have the paper layer and the Go Media logo layer as a track matte.

8.f) Create another stencil comp? Yes!
Create a new comp that is 800×540 and call it “stencil build animation”. Now drag your “stencil” comp, “no paint”comp, and “bottom” comp into this comp.

Now solo the “stencil” layer. Add the “CC Page Turn” effect to this layer. Now keyframe the page turn effect so that the stencil folds into frame. You’ll want to keyframe the fold position. I keyframed the position from -128,270 to 705,270 with a duration of about 1 second. You’ll want to make sure that the paint in your “stencil” comp doesn’t start painting until the page turn transition is complete.

Now once the page turn is complete and the paint has finished painting, select the “stencil” layer and hit “command + shift + d” to duplicate and cut the layer. Now on the second “stencil layer” keyframe the “CC page turn” effect to animate out the way it came in. You can literally copy and paste the keyframe from the 1st “stencil” layer to the 2nd stencil layer. Now you need to make sure that the “bottom” layer is underneath everything and is positioned in the timeline so it only is visible when the page turn effect is animating out. Your comp should look like this:

pageturn-layers-23 Animating Spray Paint and Stencil Effect in After Effects

Now you’ll notice that when our stencil animates out of frame, the backside has paint all over it.

sprayback-paint Animating Spray Paint and Stencil Effect in After Effects

This is where we want to use our “no paint” comp. as the backside in our “CC page turn” effect. Once you set the backside to be the “no paint” layer, you can hide that layer.

set-to-nopaint Animating Spray Paint and Stencil Effect in After Effects

Once you set the backside to the “no paint” layer, your comp should now look like this:

pageturn-mask-25 Animating Spray Paint and Stencil Effect in After Effects

Now make sure that the “bottom” layer is visible at the same time the Page Turn effect reveals the “bottom” layer. You’ll want to do some simple masking so you don’t see a jump in the black paint when the bottom layer becomes visible. The reason this happens is because both the bottom layer and the stencil layer have the paint layers on them. This is also because my original paint was set to 80% opacity. If it was set 100% this would be less of a problem. But just do a simple mask that follows the page turn as it animates and we’ll be fine. The image above shows the simple mask job I did.


9.) Combine the Stencil Build with our “Final Stencil” Comp.

Drag the “stencil build animation” comp into the “final stencil” comp. Align the “stencil build animation” layer in the timeline so it starts to animate after all of our red and yellow paint finishes animating.

end-still-26 Animating Spray Paint and Stencil Effect in After Effects

end-frame-27 Animating Spray Paint and Stencil Effect in After Effects

10.) Adding a Little Bit of Style.
So now the basics of this tutorial are complete. The only thing left is to take this animation a bit farther and keep adding in elements and making this piece visually interesting. Create a new comp called “square paint comp”. Use the vector paint effect to create a nice background similar to the one I used. Don’t forget to animate the stroke like we had done before. I also created a stroke effect on the vector paint by duplicating the paint layer and making the brush size bigger. I then brought the opacity of that layer down to about 65%.

10.a) Use 3D Space and a Camera
I then turned all the layers into 3D layers, added a camera and started to do some keyframing on the camera. I added a simple wiggle to the point of interest which give the camera a little shake. You can also add lights, motion blur, depth of field effects and anything else you can think of…go crazy! I hope you enjoyed learning about these techniques! Have fun!

finalend-frame-comp Animating Spray Paint and Stencil Effect in After Effects

, ,

This post was written by:

Haley - who has written 3 posts on GoMediaZine.


Contact the author

If you enjoyed this post, show your support.
We appreciate it!
Bookmark It! Stumble It! Float It!

43 Comments For This Post

  1. Bill Says:

    Awsome tutorial. Very helpful to all the aspiring motion graphics people out there. Keep up the good work.

  2. Carlo Says:

    Great tutorial. I’m just beginning to see what Adobe After Effects is all about.

  3. tendest Says:

    really nice work
    thx,you are so nice a guy to share AE skills

  4. [ beast ] Says:

    U Da Man! (sorry about the rant) ;)

    peace [m]

  5. Ben Says:

    Great effect, would be easier to follow as a video tutorial though.

  6. Haley Says:

    @Ben - agreed. It’s also a lot easier to make a video tutorial. From now on, I”m only going to do video tutorials. The next tutorial will probably be on expression basics.

  7. Vincent Says:

    Good Tutorial, but where can i get your plugins “Grid”, “Starglow”, “4-Color Gradient”, “Magnify”. I Don’t have this.

  8. Don Says:

    When I add the paint drips and combine them with the paint 1 layer the “drip” part shows the roughen edges too. Its not smooth and does not look like a drip. It looks like spray. What did I do wrong? I finished steps 1-5.

  9. Haley Says:

    @Don - You need to have your drip layers on top of the paint layer. The paint layer is an adjustment layer so it alters any layers below it. Take a look at the screen shot from step 7… it shows how my layers are set up in the timeline.

  10. Haley Says:

    @Vincent - I don’t think I used any of those plugins. Grid, Magnify, and the 4 color gradient all come stock with after effects pro. Starglow is put out by a compnay called Trapcode.

  11. Vincent Says:

    Thanks, yeah your right…

  12. Matt Says:

    Hi! I’m new to this software and I can’t seem to understand how one actually does “Keyframe the mask expansion to go from “-61 pixels” to about “74 pixels” with a duration of about 20 frames.” in section 5. Help appreciated!

  13. Myke Says:

    I am looking at this stunning tutorial but am upset that I cannot find the vector paint effect in After Effects. Can someone help me with this as I love this tutorial and would love to do it myself.

    Cheers
    Myke

  14. Haley Says:

    @Matt - what you are doing in this step is keyframing the “mask expansion” property on the mask itself. Select the layer that has the mask on it, hit the letter “m” on your keyboard to reveal the mask, then twirl down to see the mask properties. There you’ll see mask shape, feather, opacity and expansion. This is where you keyframe the expansion to reveal the “paint”.

    @Myke - you can use the effects and preset window to search for effects. Go to window>effects and presets. A panel will pop up allowing you to search for effects and presets. Vector paint can also be found by going to Effect>paint>vector paint.

  15. Myke Says:

    Having looked at my After Effects preset plugins i have not found the ones I need to do this project. Do I have to buy some effcts to make this project as I am eager to recreate this effect for myself.

    If I do have to buy them can I have some links to them! Cheers!

    Myke

  16. Cole Says:

    correct me if im wrong but i can’t seem to find the ‘cc page turn’ effect in AE CS3

    is there a new name or another way to go about getting this same effect?

  17. Haley Says:

    @cole - Effect>distort>cc page turn. You’ll need AE pro and you’ll need to have installed your CC (cycore) effects. I think CS3 installs the cc effects automatically.

  18. Haley Says:

    @Myke - you should download the source file that I provide at the beginning of the tutorial. Open it up and see if the effects are missing. But if you have AE7 Pro, all these effects should be stock.

  19. Kez6 Says:

    Very very cool animation !

    and very nice to know this, how to make.

    Thanks so much for tutorial !

  20. zawg Says:

    it’s very nice tutorial.Thanks for your tutorial.

  21. zawg Says:

    good..!!

  22. maria Says:

    hi love this tutorial but i’m stuck in point 5 i’m sorry to bother you but can you please tell me in more detail how was it that you added the drips of paint? i’m i supposed to do it in a photoshop file and then imported into after? using what brush? thank you i would love to finish this

  23. Haley Says:

    @maria - what you are doing is taking a spray paint drip from one of the arsenal packs and isolating the drip into it’s own file. It can be an Illustrator file or photoshop file, it doesn’t really matter. Once you have a few isolated drips, import them into after effects and apply a circular mask to them. Add a feather and animate the mask expansion property. Keyframe the mask expansion property so you reveal the drips - something like -100 to 100 should do the trick.

  24. badr Says:

    Good, Bravo !!

  25. john Says:

    Thanks alot for the tutorial, but whenever I use a CC effect (like the CC Page Turn), I get two big green lines going through the comp diagonally (Like an X).

    It even shows up when I make the final render.
    Do you have any idea what it is?

  26. Matt Says:

    People who can’t find the Page Turn -effect, go to http://www.cycorefx.com/ and download it :)

  27. Matt Says:

    Actually, don’t. It generates the green X across the screen. This is very frustrating to do the tutorial all the way to section 8f just to notice that you don’t have the Page Turn -effect. I have the AE7 Pro, but there’s no Page Turn effect.

  28. haley Says:

    @matt and anyone else getting a red or green X through their comp when applying any CC effect. You need to buy a legit copy of after effects - If you bought AE7 Pro, you’ll need to install the CC (cycorefx) effects separately from the actual program. What the red or green X means is you didn’t register your copy of that plugin, so it renders a X through the image allowing you to still use the effect as a “trial”.

  29. carmi Says:

    I have after effects 7.
    I cannot instal after effects cs3 because I dont have enough virtual memory.
    The problem I dont have vector paint and scatter can you give me a link download it I cant find it.And it doesnot instal me the update of 8.0.1 fro adobe.com

  30. haley Says:

    @carmi - you know it’s hard for me to troubleshoot others software and setup issues. I’m not sure why you don’t have these effects. I would say contact Adobe’s tech support or re-install after effects. I’m not sure if you illegally downloaded your software or what - but i’d say contact adobe because it sounds like you are missing effects and didn’t get what you paid for.

  31. Carmi Says:

    Thank you for the tutorial I take some of you ideas and stuff because I need it for mu little movie thank you very much you have the credit from me.
    Hope to see more tutorials like that.

  32. darrick Says:

    where is the alpha track matte thing [[ae 6.5 pro]]

  33. HjK Says:

    HI,
    Thanks for the tutorial. I´m following it up to the CC page turn effect, can´t find it. I am using version 6.5

  34. HjK Says:

    and I have downloaded and installed CycoreFX HD 1.6 Mac (CFM) which is supposed to include this page turn effect

  35. HjK Says:

    Ok, I found the turn page effect but still dont manage to finish this tutorial, so I started from the top again, and first:
    I do not manage to paint on the adjustment layer, so I imported a blank psd footage and painted on that,but if i switch it to an adjustment layer it goes blank again, so i’ve just kept it as an ordinary layer, and with this i made it to 8.d: I draw a rectangular mask on the stencil layer, but it doesnt subtract anything only leaves a yellow frame.

  36. HjK Says:

    to darrick:layer:track matte:alpha track matte

  37. PARTH GONDALIYA Says:

    please send me a tut. on this my e-mail id.

  38. pat Says:

    Hi

    This tutorial looks wicked, but I’m having probs painting onto my adjustment layer, I just cant see my results or the vector path, once I’ve finished painting my results just vanish even tho in the info box its says strokes: 1, weird… What am I doing wrong (I’m a newbie so apologees if its something simple!)

  39. pat Says:

    Doh! dont worry I’ve figured it! although saying that, my vector paint effect is buggy as hell. If I want to delete my paint and start again it freaks out and wont work so I have to delete my adjustment layer and create a new one…

  40. Mel Says:

    so, if you have a registerd copy of After effects and a non registerd copy of the plugin , will it still show the x? or do you have to actually buy the CC (cycorefx) effects? is there anyway to get rid of the x without buying the effect?

  41. ste Says:

    I have changed your logo to my logo how do i publish this

    thanks in advance

  42. haley Says:

    @ste - so you’ve downloaded the proj files, replaced our logo with yours, and want to call this animation your own? If you are having troubles figuring out how to export this animation, then this tutorial was NOT for you and you should pick up a basic after effects book or check out the cow(moooo). One word of advise - NEVER tell clients, friends or anyone else that you can do something that you clearly cannot. It will only come back to bite you in the ass when a clients asks you to create something original.

  43. Chez Says:

    Can someone PLEASE make a video tutorial on this and send me the link? I would love to create this myself but I am not good with following written directions. Great effect and tutorial though!
    -chez

5 Trackbacks For This Post

  1. Spray y Stencil con After Effects Says:

    [...] Go Media Zine podemos ver un tutorial en el que nos enseñan como hacer efectos de spray o stencil con After [...]

  2. Blog Capsula-Project - » Animación de spray con Affter effects Says:

    [...] enlace [...]

  3. GO media - Video Editing Forums: Digital Director Says:

    [...] media The Go MediaZine - Exclusive insights for art, design, marketing and more. » Animating Spray Paint a… could someone be a nice person and do this for me cause i cant figure it out.. i have spent my [...]

  4. jono.blog » Blog Archive » A Few Design Resources Says:

    [...] List Photoshop: Awesome Photoshop: Useful Shortcuts CSS Gradient Text Effect 80 Cool Text Effects After Effects: Animated Stencil Effect 25 Icon Resources For Designers Illustrator: Web 2.0 Stickers Largest Repository Of Free Web.20 [...]

  5. » Blog Archive » links for 2008-01-27 Says:

    [...] The Go MediaZine - Exclusive insights for art, design, marketing and more. » Animating Spray Paint … (tags: aftereffects tutorial) [...]

Leave a Reply

Do you have a Gravatar yet? It's that cool icon next to your name. Stop looking like everyone else and upload your own Gravatar for free. If you do, you'll see it by every comment you post on the GOMEDIAZINE and every other blog that supports Gravatars!