diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2019-12-18 17:19:59 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2019-12-19 18:00:10 +0300 |
commit | 7dd6e034f1ca5a9628b40de1c664161d83a3546b (patch) | |
tree | 83afb35b5f9f056b101daae34f7f1ee8656e6ae2 /release | |
parent | 26e4f4a8c475049e9600d466bb95eed341202f57 (diff) |
Animation: Added option to playblast only keyframes of selected objects
This feature makes it possible to do a viewport render (a.k.a.
playblast) by only rendering those frames on which the selected objects
have a keyframe.
The frames to render are stored in a `BLI_bitmap`, which has a bit for
each frame set to 0 (skip) or 1 (render). An alternative approach would
be to construct a set of all keyframes to render, but that would make
both constructing the list and looking up frames in the list more
complex.
The only thing this feature does is skip OpenGL rendering of a frame. As
a result, 'skipped' frames are still included in the output, but just
use the render result of the last-rendered frame. This is exactly what's
described in T72229.
Differential Revision: https://developer.blender.org/D6443
Reviewed By: zeddb
Design task: T72229
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 34d22877fa1..868ee738127 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1115,6 +1115,12 @@ class VIEW3D_MT_view(Menu): layout.operator("render.opengl", text="Viewport Render Image", icon='RENDER_STILL') layout.operator("render.opengl", text="Viewport Render Animation", icon='RENDER_ANIMATION').animation = True + props = layout.operator("render.opengl", + text="Viewport Render Keyframes", + icon='RENDER_ANIMATION', + ) + props.animation = True + props.render_keyed_only = True layout.separator() |