• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to map blur to position for film-jitter like effect

Community Beginner ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

I am using the "wiggle" expression on Position to create a film jitter effect. 

 

How can I map a blur to the position of the layer, so that it blurs in relation to the movement caused by that jitter? I'm not looking to blur the images in the footage based on their 'motion' (ie - the baseball flies across the screen - I'm not looking to blue that) but just a motion blur based on the movement of the whole frame. 

TOPICS
Expressions , How to

Views

109

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 19, 2024 Dec 19, 2024

You could try applying a Directional Blur effect to your footage and tie the blur Direction parameter to your Position wiggle's velocity with an expression like this:

v = position.velocity;
-radiansToDegrees(Math.atan2(v[0],v[1]))

and use an expression like this for Blur Length:

m = .5;
position.speed*m

where you adjust the multiplier variable (m) to get the amount of blur you want. Something like that.

 

Votes

Translate

Translate
LEGEND ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

Could be as trivial as feeding the wiggle() as a driver into a linear() expression to remap the value ranges. The only prerequisite would be for the wiggle() to exist on a "neutral" control before feeding it into anything or else you end up getting weird values and inconsistencies in the randomness. So apply the wiggle() to a custom expressions slider and then feed it into the position and blur with a pickwhip expression.

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

You could try applying a Directional Blur effect to your footage and tie the blur Direction parameter to your Position wiggle's velocity with an expression like this:

v = position.velocity;
-radiansToDegrees(Math.atan2(v[0],v[1]))

and use an expression like this for Blur Length:

m = .5;
position.speed*m

where you adjust the multiplier variable (m) to get the amount of blur you want. Something like that.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

Thank you. I guess this is more invovled than I thought. 

Where do those expressions go exactly? The expression starting with v = goes in the Wiggle expression and the one with m = in the Directional blur? What is the syntax exactly? And then tie wiggle Position to Directional blur Direction with the pick wick?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

The first expression (v = ...) goes in the Directional Blur's Direction parameter and the second one goes in the Directional Blur's Blur Length parameter. No pick whipping necessary (assumes you already have a wiggle expression on the Position property).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

Wow, holy hanna, that works great. Interesting effect. 

I've only used basic expressions before so I'll have to start some reading up to figure out how you did that. 

Many thanks for your help, that was really super helpful. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

The key is that the Position's velocity attribute has the movement's direction information (you just need to use a little trig to convert it to degrees) and the Position's speed attribute has the movement's magnitude info.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

Great, I will be reading up on how to use the expression syntax. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

LATEST

You'll find info on velocity, speed and radiansToDegrees() in the Expression Language Reference of AE's Help, and Math.atan2() in any JavaScript reference.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines