Add A Vignette With Ease – Custom Effect

Nov 24th in Workflow by Momcilo Stojkovic

One great tool used to "Have it Your Way" is Custom Effects. For those of you who are unfamiliar with Custom Effects you can check out this article. Momcilo is going to walk us through the basics of creating your very own Vignette Custom Effect. Enjoy!

PG

Author: Momcilo Stojkovic

Momcilo Stojkovic comes from Belgrade, Serbia. He is a young visual artist and software developer who has been into After Effects since he was 14. In the future, he is planning to open a company for movie editing and software developing.

Download

Vignetter

Custom Effect

Preview

RSS readers: click post title to view preview video at Aetuts+.

Download Preview .flv

File size 1.4MB

Tutorial

Step 1

First we need to create a small custom effect for this Vinetter preset. For that we will need to modify PresetEffects.xml file that is located on PC here %SystemRoot%//Program Files//Adobe//Adobe After Effects CS4//Support Files//PresetEffects.xml

Step 2

Since this file is Read Only we need to change that. Right click on the file and click properties. Uncheck the Read Only option and click Apply.

Step 3

In next few steps i will teach you how to create expression controls via XML, and because of that I will in this step explain you how After Effects loads a control and how can we create our own.
When creating a control we need to tell AE what type of control to make, what will be it's search name, display name, default value and for some attributes. Here is the template picture:

Step 4

Open PresetEffects.xml and go to the end of the file and make some space just before < / Effects >

Step 5

Ok lets create the effect! Write the following to create a simple effect:

Step 6

our Vinneter preset will have the following controls
1. Expansion Slider, to make our vinette bigger or smaller. Write text from the image to create it:

Step 7

2. Thickness Slider, to control featherness of edge. Write text from the image to create it:

Step 8

3. Blurriness Slider, to control amount of blur on our vinette. Write text from the image to create it:

Step 9

4. Vinette Color, to control color of vinette. Write text from the image to create it:

Step 10

5. Opacity Slider, to control opacity of our colored area of vinnete. Write text from the image to create it:

Step 11

OK now save that document and open up After Effects. Now we need to write a script that will import our custom effect.
Make a new composition with settings as you like.
Import some test image and create new adjustment layer named Vinetter.

Step 12

Now we need to tell AE to add that effect to our adjustment layer. We will need to create custom script that will import our effect.
Open up Script Editor, File->Scripts->Open Script Editor.
Now type text from the image and press F5 to run the script.
This script goes inside of PresetEffects.xml file and when it finds Vinetter effect it imports it on our first layer in composition, our adjustment layer.

Step 13

Go back to AE and close script editor. Select vinetter layer and you will see our effect on it!

Step 14

What now you say? Now we must figure out how are we going to make vinette. We will be using Circle effect to create alpha map, fast blur to blur vinette, CC Composite to blend Circle effect with Fast blur and we will use Circle againt to color our vinette.
Add circle by going to Effects->Generate->Circle and rename it to Aplha Map

Step 15

Since our circle needs to be in center of our comp we need to write a small expression. Alt + Click on the stopwatch for Center in Alpha Map.
Write [thisComp.width/2, thisComp.height/2]

Step 16

Vinette must touch left and right edge and will also create expression for that. Alt + Click on the stopwatch for Radius in Alpha Map.
Write thisComp.width/2

Step 17

We must now connect Thickness value from Vinetter to Feather Outer Edge in Alpha Map. Alt + Click on the stopwatch for Feather Outer Edge in Alpha Map.
Using pick whip select Thickness from Vinetter. Ok this is now looking like a vinette!

Step 18

Now we need to convert this ti real alpha map. In Alpha Map Circle check Invert Circle and put Blending mode to Stencil Alpha.
You will get some strange result but trust me it is ok.
Also Add Fast Blur effect.

Step 19

Using the same technique from Step 17 connect Fast Blur value to Vinetter Blurriness.

Step 20

OK lets blend fast blur with alpha map. Add CC Composite effect. Effects->Channel->CC Composite
Put Composite Original to Behind and unckeck RGB Only. You can't really see blur but he is there we just need to connect Expansion so we can make our Vinette bigger.

Step 21

To connect expansion slider to size of vinetter we must go back to Alpha Map circle and go into the Radius expression and add simple code.
Onto the thisComp.width/2 add + effect("Vinetter")("Expansion") and now put expansion value to -240 to test our vinette. Now we can see that the blur is really working!

Step 22

Now to color our vinette. Copy Alpha Map Circle and put it after all effects, call it Color Vinette

Step 23

Change Blending mode of Color Circle to Normal and using technique from Step 17. connect Vinette Color to Color Circle Color and Vinette Opacity to Color Circle Opacity. Change Opacity to 50 percent and there you go a VINETTE PRESET!

Step 24

This is the final step. Select all effects on Vinetter Adjustment Layer and go to Animatation->Save Animation Preset and save it to
%SystemRoot%//Program Files//Adobe//Adobe After Effects CS4//Support Files//Presets//Ae Tuts//


Enjoy this Post?

We'd love your vote!

Plus Members

Source Files, Bonus Tutorials and
More for $9 a month for all Tuts+
sites in one subscription.

Join Now

User Comments

( ADD YOURS )
  1. PG

    Ben Morgan November 24th

    Im liking this custom plug-in deal. Good stuff. Shame my Plus membership runs out in 2 days, and I joined on the worst month here. I might renew it seems that thers loads of sweet deals coming this week.

    good times

    ( Reply )
  2. PG

    John November 24th

    This is supposed to be the easy way?!

    ( Reply )
    1. PG

      Momcilo Stojkovic November 24th

      First time it will be a little bit harder, but second, third…n it will be drag n drop ;)

      ( Reply )
  3. PG

    Ed November 24th

    What is the difference between this and a solid with a feathered mask?

    Magic Bullet looks has this built in as well (if you have MBL of course).

    ( Reply )
  4. PG

    J November 24th

    This is ridiculously complex when there are things like magic bullet looks out there for so cheap.

    ( Reply )
    1. PG

      Momcilo Stojkovic November 24th

      Complex for the first time, and free

      ( Reply )
      1. PG

        Marvin November 24th

        Yeah but for someone are “free” MBL too…

        nice job Momcilo!

  5. PG

    Remington M November 24th

    Awesome! It cleared up a lot of question left from the last one. I’ve gotta go make some effects…..

    ( Reply )
  6. PG

    Michael November 24th

    HAHA! That’s ridiculously complex. I’m all for script tutorials, but would like to see more of things that are complex to begin with being solved this way. Not a simple vignette. And do we need to misspell vignette so many times?

    ( Reply )
  7. PG

    Billy November 24th

    If you can’t figure out how to add a vignette without this ridiculously complex mess….then you have no business using after effects. Good grief!

    ( Reply )
    1. PG

      Jack Daniel Jenkins November 26th

      If you think this simple code is complicated then you probably shouldn’t be using After Effects.

      ( Reply )
      1. PG

        Billy December 6th

        you are a moron. READ my post. Creating a vignette is easy…..why go through ANY of this to create something very simple. I know AE…..that’s how I know you don’t need ANY of this.

    2. PG

      Orhan Nasufovski December 16th

      This guy is showing you what you would go through if you wanted to make a simple custom effect.
      It’s about the work, not the end result.

      And considering the fact that you’re referring a very simple logical scripting language to a “ridiculously complex mess” you’re in no position to mock people my friend.

      ( Reply )
  8. PG

    Jacob Henderson November 25th

    Great Tutorial! Very nice intro to Custom Effects. Im not sure why so many people are complaining, this was a very easy tutorial to follow. And sure, there are plug-ins out there that can do this, but if you learn how to make custom effects on your own, your AE skills will start to go through the roof! take what you learn in this basic tutorial, and make more complex custom effects. It will save you time in the long run, and save you from doing the same repetitive actions over and over for each of your comps. Having the ability to make your own custom effects will start to separate the amateur, from the professional.

    Thanks a bunch! This was a really good tutorial.

    ( Reply )
  9. PG

    Jack Daniel Jenkins November 25th

    I’ve got a problem with the custom script. I copied everything exactly and when I run the script I get this: “You can not add a property with the name “vinetter” to this PropertyGroup.” Can anyone help? Momcilo? Please? Thanks.

    ( Reply )
    1. PG

      Remington M November 25th

      Try closing everything, I actually restarted my computer and then it worked for me. It doesn’t really make sense, but it seemed to work

      ( Reply )
      1. PG

        Jack Daniel Jenkins November 26th

        I got that to work once but I can’t seem to get it to work again with a new custom effect, because I’d like to be able to make more than one. Thanks though.

  10. PG

    anouar November 27th

    nice

    ( Reply )
  11. PG

    Michal Janowski November 28th

    CS4 only :-(

    ( Reply )
  12. PG

    Dave LaRonde November 29th

    This is hysterical!

    ( Reply )
  13. PG

    Aqeel December 2nd

    is there a way to make a custom effect with those closed effects that shouldn’t be modified hidden totally.

    ( Reply )
  14. PG

    Rob December 4th

    The Generate-Circle plugin already does everything you need for the effect, so why go through all this trouble?

    ( Reply )
    1. PG

      Orhan Nasufovski December 16th

      So you’ll only have to apply one single effect rather than repeat the same process over and over if you do vignettes often.

      Simple logic.

      When you’re writing code, and you need to repeat the same process over and over, you refer to the old chunk of code that was written rather than keep writing the same thing.

      ( Reply )
  15. PG

    Killerz December 16th

    My, you are pathetic. Anyone can produce a better effect with a shorter time frame. AEtuts isnt improving at all. They are paying more fools with worse tutorials to show.

    ( Reply )
  16. PG

    endeazy December 21st

    any more posts coming ?

    ( Reply )
  1. Arrow
    Gravatar

    Your Name
    December 21st