dR OGraf for Affinity

dailyRushes Scripts for Affinity

dR OGraf makes your Affinity page into an OGraf title for DaVinci Resolve, such as a lower third. Text stays live, so its words can be changed in Resolve’s Inspector, and each object can wipe or fade in and out. Movement comes from the clips you record with dR Animate.

Before you start

  1. Add dR OGraf to your Script Library, then click it to run it. See Installing Scripts for Affinity.
  2. You need DaVinci Resolve 21 or later, free or Studio.
  3. dR OGraf saves files, so it needs a folder allowed in Affinity’s Settings > Scripting. See Saving.
  4. For movement, record clips with dR Animate first. See dR Animate for Affinity. Without clips, only the entrances and exits move.

Make a title

  1. Design the title on the page, for example a bar with a name and a role on top. Give each layer a clear name in the Layers panel, such as Bar, Name and Role: the names appear in Resolve.
  2. Record any movement with dR Animate.
  3. Run dR OGraf.
  4. Type the title’s Name.
  5. For each object, choose how it comes in and goes out. See Entrance and Exit.
  6. Choose a Folder and click Save for Resolve.
  7. Click OK to keep your choices with the document, or Cancel to leave them as they were. Files you saved stay saved either way.

What goes into the title

  • Shapes and curves, with solid or gradient fills, outlines and dashes.
  • Text, artistic or in a frame, as live text: its words, font, size, alignment, spacing and colour. Frame text wraps inside its frame.
  • Groups, and objects inside them.
  • Movement from dR Animate: position, size, turning, opacity, colours, and outlines you edited by moving nodes.

Good to know

  • The whole page is the title. Its size is the page size, so match it to your timeline, such as 1920 × 1080 pixels.
  • The background is transparent. Leave out any background you only used while designing, or hide its layer.
  • Fonts must be installed on the computer running Resolve.
  • Text with mixed styles in one text object, such as one bold word, uses its first style throughout.
  • Left out: images, pixel layers, placed documents, layer effects and outlines on text. The report under the Save buttons lists anything left out.
  • Pages with artboards can’t be made into titles yet.

Each object can have its own entrance and exit. They work on top of any movement from dR Animate.

Item

Every object on the page, indented to show which group it is in. Choose one to set its entrance and exit. A group’s entrance and exit apply to everything in it.

In

  • None: it is there from the start.
  • Fade: it fades up.
  • Wipe from top, bottom, left or right: it is uncovered from that side, without moving. Wipe from top uncovers it downwards, like a blind coming down.

Seconds and Delay

Seconds is how long the entrance takes. Delay is how long after the title starts it begins, so objects can follow each other: for example, the bar wipes in from the left at 0, then the name wipes from the top at 0.4 seconds, and the role at 0.6.

Out

  • None: it stays until the clip ends.
  • Fade: it fades away.
  • Wipe to top, bottom, left or right: it is covered towards that side, without moving. Wipe to top takes it away upwards.

The exit’s Seconds is how long it takes. It always finishes on the last frame of the clip in Resolve, however long you make the clip.

Show checkbox in Resolve

Adds a checkbox for this object to Resolve’s Inspector, to show or hide it on each clip. Useful for a logo or an extra line that isn’t always needed.

Text can be changed in Resolve

On for text: adds a box for its words to Resolve’s Inspector. Turn it off for text that should never change.

dR OGraf saves the title as two files: Name.ograf.json, which describes it, and Name.js, which draws it. Keep them together.

Allow a folder

Affinity only lets scripts save into folders you have allowed:

  1. Choose Edit > Settings > Scripting.
  2. Turn on Access the file system.
  3. Under File system access, click Add and choose a folder.

To have titles appear in Resolve straight away, allow Resolve’s own titles folder, creating any folders that aren’t there yet:

%APPDATA%\Blackmagic Design\DaVinci Resolve\Support\Fusion\Templates\Edit\Titles\OGraf\

Folder

The folders you have allowed. dR OGraf remembers your choice with the document.

Save for Resolve

Saves the title into the folder. Saved in Resolve’s titles folder, it appears under Titles after Resolve restarts. Saved anywhere else, drag the .ograf.json file into Resolve.

Save EBU OGraf

Saves a version for other OGraf software, in a folder of its own named after the title with (EBU OGraf). This version can also play live: its entrance plays when it is taken on air, and its exit when it is taken off.

The report

Says where the files went, how many settings and text boxes the title has in the Inspector, how long the clip starts, and anything that could not be converted.

The title works like any other in Resolve. Put it on a track above your video and select it to see its settings in the Inspector.

Settings in the Inspector

Resolve shows up to 20 settings. They come in this order, as many as there is room for:

  1. Text: a box for each text object, named after its layer. Press Enter for a new line.
  2. Timing: Play (when there are dR Animate clips), Start after, Speed, Reverse, After the end, Fade in, Fade out, Manual timing and Time. These work as in Lottie to OGraf.
  3. Show: a checkbox for each object you chose.
  4. Colours: each solid colour, named after the first object that uses it. Objects that share a colour change together.

Text that changes

  • Frame text wraps inside its frame, as it does in Affinity. Very long text can run below the frame.
  • Artistic text grows from its alignment: left-aligned text grows to the right, centred text both ways. Extra lines go downwards.
  • A bar behind the text keeps its own size, so check that longer words still fit.

Clip length

The clip starts long enough for the animation and every entrance, plus two seconds to read it, and at least five seconds. Trim it or make it longer as you like: exits always finish on its last frame.

If it doesn’t work

What you seeWhat to do
“Affinity is not letting scripts save there” Allow the folder in Affinity’s Settings > Scripting. See Saving.
The title isn’t under Titles in Resolve Restart Resolve. Check both files are in Resolve’s titles folder, together.
A black background Put your video on a track below the title. The background is transparent, and an empty timeline shows black.
Text shows in the wrong font Install the font on the computer running Resolve.
Something is missing Check the report in dR OGraf. Images and pixel layers are left out, and hidden layers are not included.
Changes don’t show in Resolve Save again with the same name, then restart Resolve, or drag the new .ograf.json in again.