In order to make a faster to process tree, this tool helps you crop out the unused area of your render passes. It makes use of CurveTool and Crop nodes.
AutoCropTool
Updated: 1 October 2014
Author: ocman
Compatible Nuke versions: 6.0 or later
Compatibility: Linux, Mac, Windows
To install:
Copy and paste the code in your menu.py file.
To use:
1) Make a selection including your Read nodes of interest (it will ignore the non-Read nodes).
2) Execute AutoCropTool.
3) Grab a cookie and wait.
4) Each Read node will end up with a CurveTool and a Crop node. You can safely eliminate the CurveTool if you want.
5) Connect your tree to each Crop node and you are done.
6) Each Read node will have now an animated Crop node that will eliminate any unused area, making for a faster to process tree.
You can alternatively use the project's frame range or the Read node range, just comment out either line in the code.