Camera Sampling Animation Script

Show more


A script to allow editing Depth of Field and Motion Blur sample count over the course of an animation in real time.

Pic 1

Can be used to improve rendering performance for longer shots or films, as well as avoiding a waste of sample count.


Extract the zip into a mod folder of your choice, such as into game/usermod.


  • Apply the rig script onto your scene's camera and modify the sliders that were added to the camera animation set.
  • You need to set the Depth of Field and/or Motion Blur sample count (in the Render Settings) to "Use Camera Settings", otherwise the override values will be used instead.
  • It's recommended to either use the Motion Editor for animating the quality sliders, or to use the Graph Editor with "stepped" tangents.


  • Deleting a camera that uses the script (and has the text overlay) may cause crashes or other bad stuff. Don't do it for now - I warned you!
  • The text display will show in your movie render if you don't scale it to zero before starting your render!
  • If you resize the shot after having run the script, you need to run the script again on one camera which uses the script (if the text overlay is enabled). It might cause overlap otherwise.

Changing the sample count during an animation is seamless. Just ensure that, for motion blur, there isn't much movement going on during the change. And when using high radius lights, be sure that your total sample count stays around the same.

Filename Downloads Created Filesize
Files   100 2018-09-24 140.4 KB
πŸ‡³πŸ‡± EU Download   πŸ‡¨πŸ‡¦ NA Download   64 2018-09-24 140.73 KB
πŸ‡³πŸ‡± EU Download   πŸ‡¨πŸ‡¦ NA Download   72 2018-09-24 140.73 KB
πŸ‡³πŸ‡± EU Download   πŸ‡¨πŸ‡¦ NA Download   115 2018-09-25 143.24 KB
πŸ‡³πŸ‡± EU Download   πŸ‡¨πŸ‡¦ NA Download
Thumbnail image for Camera Sampling Animation Script


Reply • Sept. 25, 2018, 8:16 p.m. -  YoruichiSama
If this does what it says on the box, it's good and will help people with their workflows.
Reply • Sept. 24, 2018, 6:32 p.m. -  Ganonmaster βš”οΈ
Reply • Oct. 4, 2018, 8:24 a.m. -  Vooming1337
I'm Commander Shepard, and this is my favorite tool on SFMLab.
Reply • Nov. 21, 2018, 6:22 a.m. -  Commander Shepard
hello dude in your post of map recompiler how can i create the bsp file? I can only find the .vmf file after the recompiler is done.
Reply • Dec. 16, 2018, 12:37 p.m. -  JackXking1
@JackXking1 Hey, I re-released it over here - hope you have better luck getting it working:
Reply • Feb. 14, 2019, 10:59 p.m. -  RedMser

Leave a comment

You need to log in if you want to leave a comment.