OGraf Viewer

dailyRushes Free Tool for DaVinci Resolve

The OGraf Viewer opens an OGraf title and plays it the way DaVinci Resolve does. You can try its settings, see what might stop it working in Resolve, hide parts of it, change its words, fonts and colours, and save a picture, an SVG, a Lottie animation or a new OGraf of it. An SVG or a Lottie can then be brought into Affinity as shapes you can edit.

Before you start

  • Use a recent version of Chrome, Edge, Firefox or Safari.
  • Everything happens in your browser: your files are not uploaded.

Open a title

  1. Open the OGraf Viewer.
  2. Drop the title onto the box at the top, or click the box to choose it:
    • An .ograf file: drop it on its own.
    • A title saved as separate files: choose the .ograf.json file and its .js file together. Add any other files that came with them.
  3. The title plays in the Preview, and Checks lists anything Resolve may have trouble with.

What it opens

The preview gives the title what Resolve gives it: a Play at the start of the clip, and a Stop timed so its exit ends on the last frame. So what you see here is what Resolve shows.

Preview

Play and the slider

Play runs the clip from where the slider is. Drag the slider to go to any frame. The time and frame number are shown beside it.

Clip length (seconds)

Starts at the length Resolve gives the title when you add it to a timeline. Change it to see the title on a longer or shorter clip: the exit moves with the end, as it does when you trim the clip in Resolve.

Frame rate

Starts at the title’s own frame rate. Choose your timeline’s rate to step through the frames Resolve will draw.

Background

Titles have a transparent background, shown as a checkerboard. Choose black, grey or white to judge the colours.

Choosing a layer in the preview

Click anything in the preview to choose its layer. It is outlined in the preview and opened in Layers.

Checks

A tick means all is well, an exclamation mark is worth knowing, and a cross means the title won’t work properly in Resolve.

  • The script has a different name: the .ograf.json file names its script (its main), and the script file must have exactly that name. If it doesn’t, Resolve shows nothing. Rename the script, for example from gemini-code-123.js to the name in the check.
  • Nothing shows: halfway into the clip (or at 3 seconds) the title draws nothing, so it would look empty in Resolve.
  • Missing parts: Resolve calls the script’s load, goToTime, setActionsSchedule, playAction, stopAction, updateAction and dispose. Without goToTime it can’t be stepped frame by frame.
  • Errors: the script stopped with an error while loading or playing. The message is shown.
  • No automatic Stop: without a stopAction in the title’s actionDurations, Resolve doesn’t place a Stop by itself, so an exit animation only plays if you add a Stop in the Inspector.
  • More than 20 settings: Resolve’s Inspector shows the first 20.

Layers lists everything the title draws, the way Affinity lists layers. Hide, remove or replace parts of it, change their words, fonts and colours, save a layer as an SVG, or save the result as a new OGraf for Resolve.

The list

  • All is the whole title.
  • Under it are the title’s main parts. A title with a logo at the top and a lower third at the bottom shows those two.
  • Under each part is what is in it: boxes, shapes and text. Click the arrow beside a layer to open or close it.
  • Names come from the title’s own code, such as Logo bug or Headline bar. Layers with plain code get plain names, such as Box 2 or Shape 1. Text layers show their words beside the name.
  • A dot after a name means something in that layer has been changed. ↻ means it is replaced, and a removed layer is crossed through with ✕.

The list is made by watching the title play, so it holds everything that shows at some point in the clip. Boxes that hold others but draw nothing themselves are left out of the list, to keep it short.

Hiding a layer

Click a layer’s eye, or choose it and click Hide. Everything in it is hidden too. Hidden layers are left out of the preview, the picture, the Lottie, the SVG and a new OGraf. The saved picture and Lottie are named after the parts they keep, for example Breaking-News-Lower-third.json. Click the eye again to show it.

Removing a layer

Choose a layer and click Remove. Unlike Hide, which keeps the layer’s space, Remove takes it out, so what is around it closes up. For example, remove the category label above a headline and the gap it leaves goes. Removed layers stay in the list, crossed through. Click Put back to bring one back.

Replacing a layer

Choose a box, such as Logo bug, and click Replace with a file. The new artwork takes the layer’s place: it fills the layer’s box and moves the way the layer moves, sliding, growing and fading with it. Everything that was inside the layer is hidden, and its space is kept, so the box stays the same size.

  • SVG, for example a logo exported from Affinity. It stays sharp at any size.
  • A picture: PNG, JPG or WebP.
  • A Lottie .json, for example a layer of another OGraf saved with Save Lottie. It plays in the layer’s place, frame by frame with the title.

Fit

  • Fit: the whole artwork shows, keeping its shape.
  • Fill: it covers the whole box, keeping its shape, and what spills over is trimmed.
  • Stretch: it is pulled to the box’s shape.

Start at (s) and Crop to its artwork

For a Lottie: Start at is the time in the clip it starts playing; after its last frame it holds still. A Lottie saved from a whole title has a full-size frame with the artwork somewhere in it. Crop to its artwork uses only the part it draws in, so the artwork fills the layer instead of sitting small inside a big empty frame.

Undo replace brings the layer back. Shapes inside a drawing can’t be replaced: choose the drawing, or the box it is in.

Replaced layers in what you save

  • The picture, the preview and a new OGraf show the new artwork. A new OGraf carries it inside, and for a Lottie it also carries a small Lottie player, so nothing needs to be installed.
  • SVG and Lottie: an SVG comes in as shapes, so it reaches Affinity as shapes you can edit. A Lottie comes in as the shapes it draws. A picture goes into an SVG as a picture, and is left out of a Lottie.
  • Settings that only changed the replaced layer, such as the logo’s words and colours, are left out of a new OGraf.

Changing a layer

Choose a layer in the list, or click it in the preview. Its path, such as All › Lower third › Headline bar, is shown above its name.

Text

Type the new words. When the words come from one of the title’s settings, it says so: the setting changes too, and in a new OGraf it is still a setting in Resolve’s Inspector. Other words are written into a new OGraf as they are.

Font, Weight and Size

Type a font name or pick one from the list. Click List the fonts on this computer (Chrome and Edge) to list every font you have installed. On a layer that holds several lines of text, the font changes for all of them.

Colours

Each colour the layer uses is shown: its text, background, gradient colours, border, or a shape’s fill and outline. Click one to change it. When the colour comes from a setting, its name is shown underneath and the setting changes too.

Undo changes

Puts back the words, fonts and colours of the layer and of everything in it. Words and colours that are settings stay as they are: change them back in Settings, or click Reset settings.

SVG of a layer

Saves the chosen layer as it is on the frame in the preview, cut to its size. Choose All to save the whole frame. Each layer inside becomes a group with the same name, so it comes into Affinity in the same order.

  • Outlines (for Affinity): the words become shapes, so they look right anywhere. It needs the fonts: click List the fonts on this computer, or add the font files under Fonts for outlines in Saving.
  • Text you can edit: the words stay as text, in the same font.

Glows, shadows and blurs are left out, as they are in the Lottie.

These are the settings Resolve shows in the Inspector for the title: its text, colours, choices and numbers. Change them to see the result in the preview.

  • Text boxes, colour pickers, dropdowns, checkboxes and number boxes work as they do in Resolve’s Inspector.
  • The settings you choose are used for the picture and the Lottie too, so you can save a version with your own words.
  • Reset settings puts every setting back to the title’s own starting value.
  • Nothing here changes the title’s own files. To keep your settings, save a new OGraf: they become its starting values.

Save the frame in the preview as a picture, the whole clip as a Lottie animation, or the title as a new OGraf with your changes. Files go to your browser’s downloads. To save one layer as an SVG, see Layers.

Picture

Save PNG of this frame

Saves the frame in the preview at the title’s full size, with a transparent background. It looks exactly as the preview does, glows and all.

Lottie animation

Make it from

  • Shapes and text: each part of the title becomes a Lottie layer that moves as it does in the preview: boxes, shapes, gradients, borders, clipped corners and text. A part that only slides, grows or turns keeps one outline and moves it. A part whose outline changes as it plays is saved frame by frame.
  • A picture for each frame: each frame is saved as a picture inside the Lottie, so it looks exactly like the preview. Nothing in it can be edited, and the file is large. Picture size sets how big the pictures are. It can’t be brought into Affinity, because dR Lottie leaves pictures out.

Text as

  • Text layers: the words stay as text, in the same font. The font has to be on the computer that plays the Lottie.
  • Outlines (for Affinity): each line of text becomes a shape, so it looks the same everywhere and comes into Affinity.

Fonts for outlines

Making outlines needs each font’s file. The list shows every font the title uses:

  • Packed in the title: titles from Lottie to OGraf and dR OGraf can carry their fonts, and those are used straight away.
  • Use fonts on this computer: in Chrome and Edge, this lets the page read your installed fonts. The browser asks first.
  • Add font file: choose the font’s .ttf, .otf or .woff file. On Windows, installed fonts are in C:\Windows\Fonts; pick the file for the right weight, such as Bold or Black.

Text in a font that can’t be found stays as a text layer, and the report says which.

Save Lottie .json

Reads every frame of the clip and saves the Lottie. The report underneath lists the layers, anything left out, and what will happen in Affinity.

What is left out

  • Glows, shadows and blurs (box-shadow, text-shadow, filters), and blend modes.
  • Pictures and video inside the title.
  • Text added by ::before and ::after in the middle of a line. Bullets and numbers placed on their own are kept.
  • The Lottie shows the settings as they were when you saved it: its words can’t be changed later like the title’s.

Bring it into Affinity

  1. Choose Shapes and text, and Outlines for the text.
  2. Click Save Lottie .json, and move the file into a folder Affinity’s scripts can use. See Saving Files.
  3. In Affinity, run dR Lottie, choose the file on the Import tab, and set Frame to the moment you want. See Import.

dR Lottie leaves out masks, so parts cut by a clip or a wipe come in whole. Pick a frame where the title is fully on screen. Text layers are left out too, which is why outlines are needed.

New OGraf

Saves a copy of the title, as it is now, to import into Resolve’s Media Pool like any OGraf:

  • Hidden and removed layers are left out, and replaced layers show their new artwork.
  • The words, fonts and colours you changed in Layers are kept.
  • Its settings start as they are set in Settings.
  • Settings that only change hidden, removed or replaced layers are left out, so the Inspector only shows what the new title uses. For example, hide the logo of a news title, and the logo’s words and colours are no longer listed.

Name

The name Resolve shows for the new title. The file is named after it, for example Breaking-News-Lower-Third.ograf.

Pack the changed fonts into it

A changed font only shows in Resolve if the computer has it installed. Tick this to carry the font inside the title, so it shows on any computer. The font comes from List the fonts on this computer or an added font file. Only pack fonts whose licence allows it.

How it is made

The title’s own script is kept unchanged. A small script is added that runs it, then hides, removes or replaces layers and puts in your changes each time Resolve draws a frame. When a layer is replaced by a Lottie, the Lottie player (lottie_light.min.js) is added too. Resolve’s OGraf linter only reads the added script, so it reports errors such as dispose() is not implemented. Those methods are in the original script, which the added one uses, so the errors don’t matter.