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.

###Installation 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.


SFMLab is a free service. However, it costs about $0.03 to deliver you a 1GB file. With over 20TB of traffic every month and growing, SFMLab needs your help. If only 1% of our users each gave us $5 for a single month, we could keep the site running for several years.

Filename Downloads Created Filesize
Files   692 2018-09-24 17:57:38 140.4 KB   573 2018-09-24 19:21:12 140.73 KB   586 2018-09-24 19:18:23 140.73 KB   795 2018-09-25 17:20:18 143.24 KB
Thumbnail image for Camera Sampling Animation Script
Making SFM models
A guide on porting Blender models to Source Filmmaker

Comments (-)


Leave a comment

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