# AE ENHANCERS

Expressions/Scripts/Presets
 It is currently Wed May 22, 2013 7:19 am

 All times are UTC - 8 hours [ DST ]

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Using the speed of a layer to drive an effectPosted: Thu Jun 03, 2004 10:14 am

Joined: Fri May 21, 2004 3:03 pm
Posts: 20
Problem : you want to use the speed/velocity of a layer's movement in space to drive, say, an effect

Solution : If you want to take the speed for a layer's postionnal value, you can use the following expression

position.speed/3 -50

This expression has the advantage of using the speed information coming from a layer's position and applying it to whatever parameter you want it to influence.
For example, if you are moving a layer through a comp, and want the speed of the movement to influence the brightness of the layer, you would just copy and paste this expression to the "Brightness and Contrast" filter, in the Brightness parameter.

Why the /3-50?

Simply because the speed of the layer's position is expressed in 100's (i.e the speed can go from 0 pixels/s to a quite large amount), whereas the brightness goes from 0 to 100. So if you divide the values for speed by 3, you arrive to a decent value for brightness (the brightness won't be overblown).
The -50 adds more control to this, putting the brigthness down by 50. You could change this for any other number, depending on your needs, but you could also not use it and divide the speed by 5, or more.

Top

 Post subject: Re: Using the speed of a layer to drive an effectPosted: Fri Jan 07, 2011 6:24 am

Joined: Fri May 21, 2010 2:39 am
Posts: 4
Hi Malex

I Tried it and its funny .

you can parent the values 3 and -50 by two sliders one for the 3 and one for the -50 and then you control them and see the results directly

Tank you alot a waiting foe similar posts

Top

 Post subject: Re: Using the speed of a layer to drive an effectPosted: Thu Jan 13, 2011 4:16 am

Joined: Mon Nov 24, 2008 10:40 am
Posts: 20
In this After Effects video tutorial about corner pin with Mocha there is another example of how you can use the speed (and direction) of a corner pin point to fake motion blur:

_________________
mamoworld - tools and tutorials for After Effects
(English and German)

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 3 posts ]

 All times are UTC - 8 hours [ DST ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Announcements    Announcements Expressions    Expressions Library    Expressions Tutorials    Expression Discussion Scripts    General Scripts Library    Script Tutorials    Scripts Discussion    Script requests User Scripts    Paul Tuersley's Scripts    Impudent 1's Scripts Animation Presets    Animation presets Library