LIBRARY: Tutorials Reviews Interviews Editorials Features Business Authors RSS Feed

Expressions are FUN!

Expressions are FUN!



by Ben Unguren, Graphics Designer at FS3 graphics, Provo, Utah, USA
©2001 Ben Unguren. All Rights Reserved. Used at CreativeCow.net by kind permission of the author.

Ben Unguren Article Focus:
In this tutorial, Ben Unguren will show you one way to control expressions in Adobe After Effects 5, by using another layer as a "controller" of a layer with a simple wiggling expression, giving you a great deal more control. If you are unfamiliar with expressions in After Effects 5, you may want to read the chapter "Creating Expressions" in the After Effects 5.0 manual before continuing with this tutorial.


CLICK HERE TO SEE A SAMPLE MOVIE

Click here to download the project files



Part One: Setting it All Up

(this part shouldn't take too long--we're not picky here)

We are going to make two solids: one invisible ("WIGGLE_CONTROL"), the other with the text "wiggle" in it ("wiggle"). If you know how to do this, go ahead and do it and skip on to Part Two below.


Make a new composition, size 320x240 and a duration of at least 10 seconds.



Make a solid, same size as the composition. Name it "wiggle".

Apply the "Basic Text" effect to the "wiggle" layer.



Type in "WIGGLE" or something else just as silly, choose a happy font, and click OK.







      anti-alias the layer (so it looks decent while we work with it)      






Adjust the effect settings until you have something terribly happy:

click to see a larger image
Click on the image above to see a larger image


Make a second layer, name it "WIGGLE_CONTROL", and turn off it's visibility.



End of set-up




Part Two: Making the Basic Wiggle Expression

We are going to write an expression for the 'wiggle' layer that will make it... well, wiggle.

With the "wiggle" layer selected, press the 'p' key to bring up the position attribute.





Make an expression for wiggle's position, by selecting Animation-->Add Expression
(you can also option-click on position's stopwatch to do the same thing)




The basic expression appears for position:




Open the language elements menu (by clicking the little box next to the pick whip with the arrow pointing to the right). Select Property-->wiggler(




The start of the wiggle formula appears:




In After Effects the formula for the "wiggle" feature is understood as follows:

wiggle(freq, amp, octaves=1, amp_mult=.5, t=time)

SIDE NOTE: When the formula reads something like "octaves=1", that means that if you don't enter a value for octaves, one (1) will be the default. If you're confused, stay with it. Suddenly it will all make sense and change your life forever.

EXPLANATION OF THAT THING ABOVE:

  • freq stands for frequency, and is measured in wiggles per second. The higher the number, the FASTER it shakes.
  • amp stands for amplitude, and determines how LARGE the wiggle is. the bigger the number, the greater the area the wiggle is going to cover.
  • the other attributes we'll just leave at their defaults. (since only the first two don't have defaults, we only have to worry about them, but take time to experiment with all the variables)
  • THESE EXPLANATIONS ARE IN THE AE 5.0 MANUAL, so check there for more information (page 336 to be precise).

In order to avoid getting an error message, we have to make a formula that works, which can be met (minimally) by entering frequency and amplitude. We will enter it as follows:

position.wiggle(10, 20)






Why did I add 'position' before 'wiggle'? Because the book told me to! If it doesn't work, CONSULT THE BOOK! (AE 5.0 Manual, page 336)

If you're checking out the expression and are still getting an error message, re-examine your formula. It should work. However, computers are very picky and want the thing written exactly as they should be.

RAM PREVIEW your comp. The text should be wigglin'


Go to Part Three: Setting Up the Other Layer






Please visit our forums at CreativeCow.net if you arrived at this page from a direct link.



Related Articles / Tutorials:
Adobe After Effects
Adobe After Effects Reverse Stabilization

Adobe After Effects Reverse Stabilization

You're going to be blown away by how you can power up your After Effects workflow with reverse stabilizing your footage! By separating your tracking from your compositing, you can focus on each step, and in addition, overcome the render order complexities when match moving elements and effects on a moving shot.


Roei Tzoref
Adobe After Effects
After Effects Content Aware Fill: When It Doesn't  Work

After Effects Content Aware Fill: When It Doesn't Work

There’s a new artificial intelligence-powered feature in Adobe After Effects called Content-Aware Fill that allows you to remove anything from your shots fairly easily! It's powerful, but if you’ve tried it you know that it doesn’t always work perfectly. So what do you do when it doesn’t work as well as you'd hoped? Filmmaker Cody Pyper is here to show what to try next!


Cody Pyper
Adobe After Effects
VFX in Adobe After Effects: An Artists Panel (NAB)

VFX in Adobe After Effects: An Artists Panel (NAB)

Join panelists Andrew Kramer of Video Copilot, Jayse Hansen, and Mary Poplin of Boris FX, along with moderator, Victoria Nece of Adobe, as they discuss the world of visual effects from an artist’s perspective.


Adobe Creative Cloud
Adobe After Effects
Scars, Tattoos & Digital Makeup: After Effects & Mocha Pro

Scars, Tattoos & Digital Makeup: After Effects & Mocha Pro

How do you add SCARS, TATTOOS or DIGITAL MAKEUP to a person's face? Learn how to use Mocha Pro's planar tracker and the Mesh Warp tool to insert a flat image/video on a (non flat) human face! Join VFX guru Tobias G from Surfaced Studio for a closer look!


Tobias G
Adobe After Effects
Compositing Secrets Everyone Can Use, Pt 5: Brightness

Compositing Secrets Everyone Can Use, Pt 5: Brightness

The first challenge to understanding the nature of brightness in compositing starts with remembering that we're not actually seeing color at all, but rather something of an illusion that appears to us as color! Join longtime VFX artist, editor, software developer, and business owner Simon Ubsdell for Part 5 of the best look behind the technology of compositing that you've ever seen, as he takes a look at the math behind brightness, and how to apply that to the compositing toolsets in your favorite editing, compositing, and color grading applications.

Tutorial
Simon Ubsdell
Adobe After Effects
60 Second Tutorial: Alien Invasion in Adobe After Effects

60 Second Tutorial: Alien Invasion in Adobe After Effects

Here's a fast, fun one! Sixty seconds to create and animate an alien using the 3D and Track Camera tools to animate your character in Adobe After Effects. Use the included files, or bring your own!

Tutorial
Adobe Creative Cloud
Adobe After Effects
What Are Adobe Motion Graphics Templates?

What Are Adobe Motion Graphics Templates?

A Motion Graphics Template, referred to as a MOGRT, is an animated sequence that is self-contained and can be used in Adobe Premiere Pro, Adobe Premiere Rush and Adobe After Effects, combining graphics, text, audio and video files, as well as vector or still images (including logos), to create a still or animation that can then be customized by the MOGRT user. The result is a dynamic creative tool that provides design freedom and is consistent to its users across apps and devices. Reuse, share, and even sell them!


Rod Harlan
Adobe After Effects
Compositing Secrets Everyone Can Use Pt. 4 - Advanced Alphas

Compositing Secrets Everyone Can Use Pt. 4 - Advanced Alphas

When most people hear the words "alpha channels", they think "transparency", but that's not exactly accurate. The truth is more complex, and a quite bit more interesting! Join longtime VFX artist, editor, software developer, and business owner Simon Ubsdell for Part 4 of the best look behind the technology of compositing that you've ever seen, packed with practical advice for applying the secrets of alpha channels that's simply not possible before understanding these underlying principles. No matter which applications you're using for editing, compositing, or visual effects, this one is a must-see!

Tutorial
Simon Ubsdell
Adobe After Effects
Compositing Secrets Everyone Can Use: Pt. 3 - Alpha Channels

Compositing Secrets Everyone Can Use: Pt. 3 - Alpha Channels

When most people hear the words "alpha channels", they think "transparency", but that's not exactly accurate. The truth is more complex, and a quite bit more interesting! Join longtime VFX artist, editor, software developer, and business owner Simon Ubsdell for Part 3 of the best look behind the technology of compositing that you've ever seen, packed with practical advice for applying the secrets of alpha channels that's simply not possible before understanding these underlying principles. No matter which applications you're using for editing, compositing, or visual effects, this one is a must-see!

Tutorial
Simon Ubsdell
Adobe After Effects
Compositing Secrets Everyone Can Use 2: Advanced Blend Modes

Compositing Secrets Everyone Can Use 2: Advanced Blend Modes

Whether you're a full-time compositor and VFX artist, an editor working in one of the many NLEs that supports Blend Modes (including Adobe Premiere, Apple FCP and FCPX, Avid Media Composer, DaVinci Rsolve, and VEGAS Pro), or whether you just want the additional graphics power that comes with insight into the secret world of pixels, this is the tutorial for you! Join longtime VFX artist, editor, software developer, and business owner Simon Ubsdell for Part 2 of the best look behind the technology of blend modes that you've ever seen, with some practical steps you can start taking today to make your work look better than ever.

Tutorial
Simon Ubsdell
MORE
© 2019 CreativeCOW.net All Rights Reserved
[TOP]