Skip to main content
Known Participant
Dec 19, 2024 3:44 PM UTC
Answered

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

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. 

This topic is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Dec 19, 2024 4:29 PM UTC

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.

 

8 replies

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Dec 19, 2024 4:29 PM UTC

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.

 

Translate
paul_7484Author
Known Participant
Dec 19, 2024 4:49 PM UTC

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?

Translate
Dan Ebberts
Community Expert
Community Expert
Dec 19, 2024 5:01 PM UTC

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).

Translate
Mylenium
Legend
Dec 19, 2024 3:50 PM UTC

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

Translate