Bokeh on camera


#1

I have a composition made in After Effects of a few plates (a house, background of city, and sky) and I have a transitions for the camera where it focus on the background (sky) to the foreground (house). It now has a normal gaussian blur and I want to be a bokeh. I saw some plugins that do the job, but it does it for the whole image. I want to use it for the camera itself. How can I do that? Thanks in advance :slight_smile:


#2

You can’t. You will have to fake it by applying separate effects to each layer and animate their parameters.

Mylenium


#3

Thanks for the reply. I can’t attach it to the camera somehow? Kinda sucks to change every layer manually… Is it possible to connect the parameters somehow and make the normal blur invisible or something? I’m new to After Effects so I don’t know what is possible in the program.


#4

Yes, of course you can rig it with expressions, but the specifics will depend on your scene. The basic gist is, that you determine the distance using length(camera,layer) and then remap using linear(distance,minDistance,maxDistance,minValue,maxValue) (this is all pseudo-code and needs to be adjusted to work properly).

Mylenium


#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.