Animated Render Border

by Ray Mairlot's Shop in Scripts and Addons

Animated Render Border

An adaptive render border that updates every frame to always surround the selected object or group.

 

What does ‘Animated Render Border’ do?

Blender has an inbuilt feature that allows you to draw a box around the areas you want to render (while looking through the camera) and skip the rendering of areas outside this box. This is called ‘border’ rendering and it’s great for previewing parts of your render. It works well for still frames but not so much for animations where your object of interest is moving all over the screen.

This add-on makes the ‘render border’ adaptive so that the border updates its location and size every frame to always surround the selected object or group of objects*, focusing your render power on just those specific parts of the image. You can scroll in the timeline to see the border update automatically and render when ready.

There is also a ‘Keyframe’ mode, to allow you to manually place and keyframe the position of the render border instead of tracking an object or group.

*Tracking is enabled for the following object types: Meshes, Text (Font) objects, Curves, Surfaces, Meta objects, Lattices and Armatures.

 

How can it help you?

If you’re doing test renders and want to preview the render of an animated object but don't want to waste processing time on background objects you can use the ‘Animated Border Render’ to focus the rendering on the selected object(s).

If the image you are rendering has a transparent background (a common occurrence for those doing compositing) and you want to skip rendering the transparent areas (which, despite being empty still take time to process) you can again, select an object or group to track and the Animated Render Border add-on will handle the rest.

 

How does it work?

The add-on looks at the bounding box of the object(s) selected to be tracked and will adjust the render border accordingly. Alternatively, objects can be tracked by analysing the ‘inner points’ of the object (vertices, lattice points, curve points etc.), which can be slower with complex objects, but very precise.

You can also always use the ‘margin’ feature of the add-on to make sure you’ve always got a ‘safe’ area around your tracked objects.

 

Why did I make this?

I was rendering an animation and noticed that apart from the object I was rendering, a lot of the frame had a transparent background. Despite the fact these areas were blank, the renderer was still taking some time to process these areas. It was infuriating to watch the renderer spend time on these blank areas and not focus on the important areas. I knew these areas were blank but Blender didn’t! I knew Blender’s render border could skip areas on single frames, but I also knew that wouldn’t work on animations where the object is moving. The thought of faster renders was all the motivation I needed to start scripting.

 

Release Log:

V1.1

  • Fixed bug that mean rendering an animation happened on wrong start frame.

 

V2.0

  • Renders can now be properly cancelled.
  • Text (Font) objects, Curves, Surfaces, Meta objects, Lattices and Armatures can now be tracked, in addition to Mesh objects.
  • Render border can now be manually keyframed instead of tracking an object

 

V2.1

  • Fixed an issue where rendering from the command line would fail due to the modal operator not working in 'background' (-b) mode.

 

Full release log here.