SnowyPlover

Your first animation

In about ten minutes you will fly the camera through three saved views of your model and export the flight as an MP4. You need a Rhino model, SnowyPlover and ffmpeg (see Install).

1. Save the keyframes as Named Views

In Rhino, frame the model the way the animation should start and run NamedView › Save. Name it View 1. Move the camera, save View 2, then View 3. These are the keyframes the camera will fly through, in order.

Keep the same viewport projection (perspective or parallel) for all three views. Mixing them makes the camera jump.

2. Read the views into Grasshopper

Add a Panel, type the three names on separate lines, and connect it to the namedViews input of Get Camera From Named Views. Its camera output now holds three cameras. If you change a Named View later, click Update on the component to read it again.

View 1View 2View 3Get Camera From Named Views: Reads Rhino Named Views and outputs multiple cameras for animation. Click Update to read the Named Views again after they have changed.Get Camera From Named ViewsnamedViews (N) Text · list List of Rhino Named View names to sample as camera keyframesnamedViewsactivate (On) Boolean · item default true Toggle to runactivatecamera (C) Camera · list Camera keyframes corresponding to input Named ViewscameraUpdate

3. Interpolate between them

Add Animate Keyframes and wire the cameras into cameras. Its t input decides where along the flight the camera is: 0 is View 1, 1 is View 3. Don't wire t straight from a source. Add a Number parameter, name it t, and wire it into t. This is the t hub: later you only have to change what feeds it.

Add Apply Camera, wire camera into it, and click its button so it reads Active. From now on the Rhino viewport follows the camera.

4. Preview with Duration Counter

Add Duration Counter and wire t_Counter into the hub. Set totalDuration to the length you want in seconds (try 6). Click Play: the counter runs from 0 to 1 in 6 seconds, and the viewport flies from View 1 to View 3 at the speed of the final video. Pause holds it, and Reset goes back to the start.

View 1View 2View 3Get Camera From Named Views: Reads Rhino Named Views and outputs multiple cameras for animation. Click Update to read the Named Views again after they have changed.Get Camera From Named ViewsnamedViews (N) Text · list List of Rhino Named View names to sample as camera keyframesnamedViewsactivate (On) Boolean · item default true Toggle to runactivatecamera (C) Camera · list Camera keyframes corresponding to input Named ViewscameraUpdateseconds6Duration Counter: A timer-based counter that increments from Start to End over Duration seconds. Click Play to run it, Pause to hold the current value and Play again to carry on; it stays at End when finished, and Play then runs it again from Start. Reset goes back to Start. The activate input still works: switching it on plays, switching it off pauses.Duration CountertotalDuration (TD) Number · item Time duration in secondstotalDurationt_Counter (T) Number · item Counter outputt_CounterPlayResetNumber 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 storyboardtmode (M) Integer · item optional 0=Linear, 1=Smooth through keyframes. Right-click to set the default.modecamera (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].cameramode (M) Integer · item Optional. Projection mode: -1=use camera projection (perspective if absent), 0=Perspective, 1=Two-Point, 2=Parallel. Leave unconnected and right-click to pick it instead.modeInactive
Preview: Duration Counter feeds the t hub and plays the flight in real time.

Two settings shape the flight:

The camPath and camFOV outputs preview the path and the view frame in Grasshopper, which helps when the camera does something unexpected. To study one moment, you can temporarily feed the hub from a Number Slider (0 to 1) instead.

5. Swap in View Capture Driver to export

When the preview looks right, replace the preview source with the exporter. Add View Capture Driver and give it the same totalDuration as the counter, fps 30, and an empty folder such as D:\anim\shot01 as path.

  1. Disconnect Duration Counter from the hub. Only one source may feed it, otherwise the hub holds two values.
  2. Connect master Time of View Capture Driver to the hub. Nothing else in the definition changes.
  3. Click Export Frames. The component steps t from 0 to 1 and saves one frame each time: 6 s × 30 fps = 180 frames. Click again to stop early.
View 1View 2View 3Get Camera From Named Views: Reads Rhino Named Views and outputs multiple cameras for animation. Click Update to read the Named Views again after they have changed.Get Camera From Named ViewsnamedViews (N) Text · list List of Rhino Named View names to sample as camera keyframesnamedViewsactivate (On) Boolean · item default true Toggle to runactivatecamera (C) Camera · list Camera keyframes corresponding to input Named ViewscameraUpdateAnimate 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].cameramode (M) Integer · item Optional. Projection mode: -1=use camera projection (perspective if absent), 0=Perspective, 1=Two-Point, 2=Parallel. Leave unconnected and right-click to pick it instead.modeInactiveView 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 pathpathmaster Time (T) Number · item Normalized time [0..1] generated by the exportermaster TimeExport FramesNumber parametertD:\anim\shot01seconds6
Export: the hub now reads master Time from View Capture Driver instead of Duration Counter.

To go back to previewing, reconnect Duration Counter and disconnect master Time. Keeping both components on the canvas means you only ever move that one wire.

Leave the Rhino window alone while it exports: the frames are captured from the viewport. Set width and height to render at a fixed size such as 1920 × 1080 whatever the size of the viewport.

6. Make the video

Add FramesToVideo, connect the same folder to folder, and click Make Video. With the defaults you get D:\anim\shot01\keyframe.mp4: H.264 at 30 fps, which plays anywhere. The videoPath output gives the file once it is done.

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 pickformatMake Video

If frameRate here does not match the fps you exported with, the video plays too fast or too slow. To make a GIF instead, use FramesToGifs the same way.

Next