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
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
Adobe After Effects
Compositing Secrets Everyone Can Use: Pt. 1 - Blend Modes

Compositing Secrets Everyone Can Use: Pt. 1 - Blend Modes

Join longtime VFX artist, editor, software developer, and business owner Simon Ubsdell for the best look behind the technology of blend modes that you've ever seen. This isn't just for graphics and VFX, but for video editors too -- anyone who puts anything together, and wants to learn more about HOW images combine at the most basic level, in a way that applies to every application you might use, whether Adobe Premiere Pro, Apple FCPX, Avid Media Composer, DaVinci Resolve, VEGAS Pro, and yes, graphics and VFX programs like After Effects, Motion, Fusion, Nuke, Scratch, and many more.

Tutorial
Simon Ubsdell
Adobe After Effects
Disintegration VFX in Adobe After Effects

Disintegration VFX in Adobe After Effects

Join VFX guru Tobias Gleissenberger of Surfaced Studio for a classically energetic Adobe After Effects tutorial combining difference mattes, displacement maps, edge glows, and compositing tricks to dissolve (or explode!) one element in your frame while leaving the rest alone.

Tutorial
Tobias Gleissenberger
Adobe After Effects
Adobe After Effects: Common QT & Export Problems & Solutions

Adobe After Effects: Common QT & Export Problems & Solutions

Problems with Adobe After Effects? Can't import or export QuickTime videos? Exports too big? Missing codecs? AE guru and VFX whiz Tobias Gleissenberger of Surfaced Studio has the answers you're looking for to make every project come to completion more smoothly, including a comparison of exported file sizes for common codecs.

Tutorial
Tobias Gleissenberger
Adobe After Effects
Fancy Title Animations In Adobe After Effects -- FAST!

Fancy Title Animations In Adobe After Effects -- FAST!

Follow along as VFX guru Tobias Gleissenberger shows you how how to quickly create professional-looking animated text elements using the free presets that are included with Adobe After Effects, customizing them to suit your needs. Tobias will also show you how to apply masks to your text layers to have them appear from behind other elements.

Tutorial
Tobias Gleissenberger
Adobe After Effects
Remove People from Moving Video in After Effects with Mocha

Remove People from Moving Video in After Effects with Mocha

Learn how to remove a person from a moving video using the Remove module of the Mocha Pro plug-in for Adobe After Effects! In one of his most epic tutorial's yet, Surfaced Studio's Tobias Gleissenberger then adds a bonus Beam Up effect using some of the great filters from the Boris Continuum and Sapphire collections.

Tutorial
Tobias Gleissenberger
Adobe After Effects
Basic Clone Effect Interaction - After Effects Tutorial

Basic Clone Effect Interaction - After Effects Tutorial

Want to take your CLONE EFFECT to the next level? Want to know how to make your clones INTERACT? Tobias Gleissenberger shows you how.

Tutorial
Tobias Gleissenberger
Adobe After Effects
Adobe After Effects: Glitch Effects Without Using Plug-ins!

Adobe After Effects: Glitch Effects Without Using Plug-ins!

Join VFX guru Tobias Gleissenberger for a fun, high-energy look at how to create all sorts of digital noise, glitch, and other disturbing video effects with any version of Adobe After Effects, without using any plug-ins!

Tutorial
Tobias Gleissenberger
Adobe After Effects
Adobe After Effects Energy Ball

Adobe After Effects Energy Ball

In his latest high-energy Adobe After Effects tutorial, VFX guru Tobias Gleissenberger of Surfaced Studio combines a variety of effects to create the pulsating energy ball, composited with motion tracking, optical flares, and more.

Tutorial
Tobias Gleissenberger
MORE
© 2018 CreativeCOW.net All Rights Reserved
[TOP]