SnowyPlover

Export frames and video

Exporting happens in two steps. View Capture Driver saves one image per frame into a folder. A video component then encodes that folder with ffmpeg.

Capture the frames

View Capture Driver: Capture frames from a Rhino viewport. The exporter drives t itself and renders strictly frame by frame. Click the button to start exporting; click it again while exporting to stop.View Capture DrivertotalDuration (TD) Number · item default 1.0 Duration in secondstotalDurationfps Integer · item default 30 Frames per secondfpspath (P) Text · item Output folder pathpathviewName (V) Text · item optional Viewport name (default = active)viewNamewidth (W) Integer · item default 0 Image width (default = viewport)widthheight (H) Integer · item default 0 Image height (default = viewport)heightbaseName (N) Text · item default keyframe Base file namebaseNametransparent (T) Boolean · item default false Capture with transparent background (outputs PNG when true)transparentmaster Time (T) Number · item Normalized time [0..1] generated by the exportermaster Timeframe Index (I) Integer · item Current frame index being prepared / last saved frame indexframe Indexframe Count (C) Integer · item Total number of framesframe Countdone (D) Boolean · item True when all frames have been exporteddoneExport FramesNumber parametertD:\anim\shot01

Connect master Time to the t hub and click Export Frames. The component shows its progress, and done turns true at the end. If you change one of its inputs while it runs, it stops, so that one folder never mixes two exports.

Turn on Apply Camera and Apply Design Option before you export. While they are inactive, the viewport does not follow the animation, and every frame looks the same.

Make a video

FramesToVideo encodes the folder. Set frameRate to the fps you exported with.

FramesToGifs makes a GIF instead. gifFps (15 by default) and width keep the file small; loop is 0 to loop forever.

D:\anim\shot01FramesToVideo: Turn an exported frame sequence ({baseName}_000000.jpg/png from View Capture Driver) into a video with ffmpeg. MP4 (H.264) plays everywhere; MOV (ProRes 4444) keeps transparency for compositing in After Effects or Premiere. Click the button to start; click it again while encoding to cancel. ffmpeg must be installed: put it on PATH, next to the plugin, or set ffmpegPath.FramesToVideofolder (P) Text · item Folder that holds the frames (the path of View Capture Driver)folderframeRate (fps) Integer · item default 30 Frame rate of the sequence (the fps it was exported with) and of the videoframeRateformat (F) Integer · item default 0 0 = MP4 (H.264, plays everywhere, no transparency), 1 = MOV (ProRes 4444, keeps transparency, large files). Right-click to pickformatquality (Q) Integer · item default 18 MP4 only: CRF 0-51, lower is better and larger. 18 looks nearly lossless, 23 is ffmpeg's defaultqualityMake VideoFramesToGifs: Turn an exported frame sequence ({baseName}_000000.jpg/png from View Capture Driver) into a GIF with ffmpeg. Click the button to start; click it again while encoding to cancel. ffmpeg must be installed: put it on PATH, next to the plugin, or set ffmpegPath.FramesToGifsfolder (P) Text · item Folder that holds the frames (the path of View Capture Driver)foldergifFps (GF) Integer · item default 15 Frame rate of the GIF. Lower means a smaller file. 0 = same as frameRategifFpswidth (W) Integer · item default 0 GIF width in pixels, height keeps the aspect ratio. 0 = original sizewidthMake GIF

Both write next to the frames by default (keyframe.mp4, keyframe.gif); set output to write somewhere else. Click the button again while they run to cancel.

Join several shots

A presentation film is usually several shots: an aerial, an orbit, a section, an interior. Export each into its own folder, then list the folders in Join Clips.

D:\anim\shot01D:\anim\shot02D:\anim\shot031Join Clips: Join several exported frame sequences (one View Capture Driver folder per shot) into one video, with a cut or a transition (crossfade, fade through black, wipe ...) between each pair of clips. To blend two design options, export the same camera move once per option and join them with a crossfade. Clips with a different size are fitted into the size of the first clip with black bars. Click the button to start; click it again while encoding to cancel. Needs ffmpeg 4.3 or newer: put it on PATH, next to the plugin, or set ffmpegPath.Join Clipsfolders (P) Text · list Frame folders in playback order, one per clip (the path of each View Capture Driver export)folderstransitions (T) Integer · list default 1 Transition between clips: one value for all, or one per join (clip count - 1). 0 = cut, 1 = crossfade, 2 = fade through black, 3 = fade through white, 4 = dissolve, 5-8 = wipe left/right/up/down, 9-10 = slide left/right, 11-12 = circle open/close. Right-click to picktransitionstransitionSeconds (TS) Number · list default 1.0 Length of each transition in seconds: one value for all, or one per join. The clips overlap by this much, so the video gets shortertransitionSecondsfadeIn (FI) Number · item default 0.0 Fade in from black at the start, in seconds (0 = none). Fades from transparent when the MOV keeps transparencyfadeInfadeOut (FO) Number · item default 0.0 Fade out to black at the end, in seconds (0 = none). Fades to transparent when the MOV keeps transparencyfadeOutJoin Clips

Clips of a different size are fitted into the size of the first clip with black bars.

Example: crossfade between two design options

Design Option Timeline can only cut from one option to the next, because a Rhino layer is either on or off. To let option A dissolve into option B while the camera keeps moving, export the same camera move twice, once with each option visible, and join the two folders with a crossfade.

The two clips must overlap by the length of the crossfade, so that the camera is in the same place on both sides of the blend. Say the whole move takes 10 seconds, the switch happens halfway, and the crossfade lasts 1 second:

ClipVisible optionPart of the move (t)totalDurationFolder
AA0 to 0.555.5D:\anim\optionA
BB0.45 to 15.5D:\anim\optionB

Joined with a 1-second crossfade, the clips overlap from t = 0.45 to 0.55, and the film is 5.5 + 5.5 − 1 = 10 seconds long again.

1. Export clip A

View Capture Driver always runs master Time from 0 to 1, so remap it to the part of the move this clip covers before it reaches the t hub. Grasshopper's own Remap Numbers does this: set Source to 0 To 1 and Target to 0 To 0.55. To show only option A, feed Apply Design Option a fixed visibility list instead of Design Option Timeline: True, False. Switch it to Active and click Export Frames.

5.5D:\anim\optionAView Capture Driver: Capture frames from a Rhino viewport. The exporter drives t itself and renders strictly frame by frame. Click the button to start exporting; click it again while exporting to stop.View Capture DrivertotalDuration (TD) Number · item default 1.0 Duration in secondstotalDurationpath (P) Text · item Output folder pathpathmaster Time (T) Number · item Normalized time [0..1] generated by the exportermaster TimeExport Frames0 To 10 To 0.55Remap NumbersValue Generic · itemValueSource Generic · itemSourceTarget Generic · itemTargetMapped Generic · itemMappedNumber parametertAnimate Keyframes: Interpolate camera keyframes with per-segment durationsAnimate Keyframescameras (C) Camera · list Camera keyframes (ordered list)camerast Number · item default 0.0 Master slider [0..1] for the whole storyboardtcamera (C) Camera · item Output camera at time tcameraApply Camera: Apply a Camera object to the active Rhino viewport. Click the button to switch applying on or off; right-click the component (or the mode input) to pick the projection.Apply Cameracamera (C) Camera · item Camera object containing [Name, Location, Target, Lens, Up].cameraInactiveOptionsTrueFalseApply Design Option: Show / hide design option layers in the Rhino document using the visibility list from Design Option Timeline. Connect the SAME options input as Design Option Timeline. Click the button to switch it on or off. Original layer visibility is recorded when switched on and restored when switched off (right-click to change).Apply Design Optionoptions (L) Text · list Option layers. Use the same input as Design Option Timeline.optionsvisibility (V) Boolean · list Visibility per option, from Design Option Timeline.visibilitystatus (S) Text · item StatusstatusInactive
Clip A: the first 55% of the camera move, with only option A visible.

2. Export clip B

Change three things and export again: Target to 0.45 To 1, the visibility to False, True, and path to D:\anim\optionB. Keep totalDuration at 5.5 and the same fps.

3. Join them with a crossfade

List both folders in Join Clips, set transitions to 1 (crossfade) and transitionSeconds to the overlap, 1. Click Join Clips.

D:\anim\optionAD:\anim\optionB11Join Clips: Join several exported frame sequences (one View Capture Driver folder per shot) into one video, with a cut or a transition (crossfade, fade through black, wipe ...) between each pair of clips. To blend two design options, export the same camera move once per option and join them with a crossfade. Clips with a different size are fitted into the size of the first clip with black bars. Click the button to start; click it again while encoding to cancel. Needs ffmpeg 4.3 or newer: put it on PATH, next to the plugin, or set ffmpegPath.Join Clipsfolders (P) Text · list Frame folders in playback order, one per clip (the path of each View Capture Driver export)foldersframeRate (fps) Integer · item default 30 Frame rate of the sequences (the fps they were exported with) and of the videoframeRatetransitions (T) Integer · list default 1 Transition between clips: one value for all, or one per join (clip count - 1). 0 = cut, 1 = crossfade, 2 = fade through black, 3 = fade through white, 4 = dissolve, 5-8 = wipe left/right/up/down, 9-10 = slide left/right, 11-12 = circle open/close. Right-click to picktransitionstransitionSeconds (TS) Number · list default 1.0 Length of each transition in seconds: one value for all, or one per join. The clips overlap by this much, so the video gets shortertransitionSecondsJoin Clips
One 10-second film: the camera never stops, and option A dissolves into option B around the 5-second mark.

The same recipe works for more options: export one clip per option, overlapping each neighbour by the length of the crossfade, and list all the folders in order.