Skip to main content
gogoatboy
Participant
August 9, 2020
Question

Directional blur controlled by null?

  • August 9, 2020
  • 2 replies
  • 194 views

Hello! Is there a directional blur that can be controlled with a null? E.g. I have a background plate and a null tracked from the camera motions of the plate. I then have a cel animated layer to which I would like to "copy" the same amount and direction of blur from the bg plate.

 

If the elements were 3d it would be easy to render a motion vector pass and use e.g. RSMB, but how would something similar be done in this case?

 

Thanks in advance!

This topic has been closed for replies.

2 replies

Mylenium
Legend
August 9, 2020
Mylenium
Legend
August 9, 2020

Well, determining the direction only requires a simple "targeting expression" with Math.atan2() applied to the respective parameter in Directional Blur. A simple web search can turn up enough ecxamples or even just browsing this forum. I answered a similar question only a few days ago. Determining the amount would be more tricky, as there is no causal relation and in fact it may look rather jittery, so I'd simply animate it by hand. Otherwise it would be quite some complex math determining the difference of the resulting velocity vector between two sample points at different times using valueAtTime() similar how you align items to paths by looking ahead or looking back on their trail.

 

Mylenium