Post Process scripting

(I wasn’t sure if this question belonged in this forum or the blueprints)

I’d like to be able to script a post process effect for an FPS player camera.
Example:

  1. script call
  2. player’s screen transitions to a post process effect (DoF + bloom increase + whatever)
  3. after a delay, player’s screen returns to the default post process settings as defined by the level/volume/etc

I’ve spent a couple hours trying to find a solution for this. Here’s what I found:

  • The only way I’ve been able to do this is to use a matinee to move a post process volume closer/further from the player. Total hack. Not a good solution.
  • I’ve read Unreal4 currently doesn’t support easy manipulation of post process transitions.
  • I’ve read suggestions to use a material functions to manipulate geometry in front of the player camera. I haven’t wanted to pursue this solution because I doubt this is going to work and would be time consuming to replicate the post process effects.

Can anyone provide help on this? Suggestions, links, unreal example content? Thanks.

This should help: A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums You can also find the download link for a sample project at the bottom of that page.

It is for DoF only but you can make it work for every post process parameter.

Thanks for the quick reply Jacky… this is great.

Two follow ups for you (or anyone else reading), both concerning the “Make PostProcessingSettings”:

  • I get a blueprint compiler error “Error The current value of the ’ Blendables ’ pin is invalid: Array inputs (like ‘Blendables’) must have an input wired into them (try connecting a MakeArray node).” I got around this by wiring this to an empty “Make Array”. But not sure why this is happening… it didn’t seem to happen in your example.
  • The override checkboxes don’t show after I collapse the options. Not a big deal… but I figured I’d note this.

No problem.

Blendable error; i’ve seen others having this error sometimes but it is harmless as far as i know.

Checkboxes; that Post Process node is a mess unfortunately so you’ll have to bear with it for a while until Epic makes it easier to handle(they are aware of it and will bring a better solution in the future)