Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Retime animated camera to speed up mental ray fg map pre-rendering. 12/2: corrected menu update, ups 11/26: added set other camera non renderable checkbox
Features: When using FinalGather in animation (especially on a render farm) it's common to pre-render a Fg map only (or low antialiased images first) and FG Freeze when rendering the camera flight. There is a rough description here https://forums.cgsociety.org/showthread.php?t=356092. This workflow reduces for flickering in the final rendering as render time FG points cause flicker.
This script retimes a copied animated camera to speed up the pre-rendering and lets you set some prescale on the camera so you get additional fg points at the edges of the camera. Works with keyframes only. Bake other animation types before using script.
Install: Put ks_finalGatherCamera.mel in you script directory. Start the GUI by typing "ks_finalGatherCamera" in the script editor.
Usage: Select render camera to copy from Option menu. Set your settings, hit copy button. Use this retimed camera for fg map rendering only.
If you use this for a project please drop me a line.