Easy way to export Text for proofingreading ?

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Darmouthz

  • Posts: 21
  • Joined: Mon Nov 11, 2019 3:14 am
  • Real Name: Jean-Philippe Brochu

Easy way to export Text for proofingreading ?

PostSun Oct 17, 2021 4:08 am

Is there a way to export Titles / Title + (not subtitles) easily ?
XML, txt file, etc. for translation or review ?
Offline
User avatar

Andy Mees

  • Posts: 711
  • Joined: Wed Aug 22, 2012 7:48 am

Re: Easy way to export Text for proofingreading ?

PostSun Oct 17, 2021 9:38 am

No easy built-in function, but I'd imagine it should be possible via built-in scripting support and/or macro based automation eg AutoHotkey (Windows).

If not, the text field of any 'Text' titles (not 'Text+') can be parsed from an FCPXML (.fcpxml) export of a timeline.
Resolve Studio 17.4.2 | Adobe CC 2021 | Desktop Video 12.1
AMD Ryzen 5950X | Windows 10 Pro 20H2 | 64GB RAM | GTX 1060 6GB | 462.31 | Decklink Mini Monitor
M1 MacBook Pro | macOS 11.2.1 | 16GB RAM | Ultrastudio Monitor 3G
V24G2 | WVR5000 | 8020B | USBPre
Offline

Darmouthz

  • Posts: 21
  • Joined: Mon Nov 11, 2019 3:14 am
  • Real Name: Jean-Philippe Brochu

Re: Easy way to export Text for proofingreading ?

PostWed Oct 20, 2021 6:13 pm

Great flash for the XML. I'll look into it.
Offline

Peter Cave

  • Posts: 2706
  • Joined: Thu Aug 23, 2012 6:45 am
  • Location: Melbourne, Australia

Re: Easy way to export Text for proofingreading ?

PostThu Oct 21, 2021 12:49 am

Andy Mees wrote:No easy built-in function, but I'd imagine it should be possible via built-in scripting support and/or macro based automation eg AutoHotkey (Windows).

If not, the text field of any 'Text' titles (not 'Text+') can be parsed from an FCPXML (.fcpxml) export of a timeline.


Can you explain how to parse the title text?
Resolve does not export titles when exporting FCPXML files.
FCP DOES export titles in the FCPXML file.
Resolve 16.2.6 AND Resolve 17.3.1
Mac OSX 10.14.6, Hackintosh i7 8700 32GB RAM, Radeon RX 580 8GB
Decklink Studio 2, FSI LM1770 Monitor
Offline
User avatar

Andy Mees

  • Posts: 711
  • Joined: Wed Aug 22, 2012 7:48 am

Re: Easy way to export Text for proofingreading ?

PostThu Oct 21, 2021 5:44 am

Andy Mees wrote:the text field of any 'Text' titles (not 'Text+') can be parsed from an FCPXML (.fcpxml) export of a timeline.
Peter Cave wrote:Resolve does not export titles when exporting FCPXML files.


Hey Peter
As I wrote, Resolve DOES export the text field of 'Text' title instances (but not 'Text+') when exporting FCPXML file... or at least it does right here, right now, on my laptop. See below:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fcpxml>
<fcpxml version="1.3">
    <project name="Timeline 5 (Resolve)">
        <resources>
            <format height="1080" name="FFVideoFormat1080p25" frameDuration="1/25s" width="1920" id="r0"/>
            <effect uid=".../Titles.localized/Bumper:Opener.localized/Basic Title.localized/Basic Title.moti" name="Basic Title" id="r1"/>
        </resources>
        <sequence tcStart="3600/1s" duration="2867/25s" format="r0" tcFormat="NDF">
            <spine>
                <gap duration="2867/25s" offset="3600/1s" name="Gap" start="3600/1s">
                    <title duration="5/1s" enabled="1" offset="3600/1s" ref="r1" lane="1" name="Rich" start="3600/1s">
                        <text roll-up-height="0">
                            <text-style ref="ts0">Basic Title One</text-style>
                        </text>
                        <text-style-def id="ts0">
                            <text-style alignment="center" fontColor="1 1 1 1" bold="1" font="Open Sans" strokeColor="0 0 0 1" lineSpacing="0" italic="0" fontSize="96" strokeWidth="0"/>
                        </text-style-def>
                        <adjust-transform position="0 0" anchor="0 0" scale="1 1"/>
                    </title>
                    <title duration="5/1s" enabled="1" offset="90167/25s" ref="r1" lane="1" name="Rich" start="90167/25s">
                        <text roll-up-height="0">
                            <text-style ref="ts1">and this one works too.</text-style>
                        </text>
                        <text-style-def id="ts1">
                            <text-style alignment="center" fontColor="1 1 1 1" bold="1" font="Open Sans" strokeColor="0 0 0 1" lineSpacing="0" italic="0" fontSize="96" strokeWidth="0"/>
                        </text-style-def>
                        <adjust-transform position="0 0" anchor="0 0" scale="1 1"/>
                    </title>
                    <title duration="5/1s" enabled="1" offset="90292/25s" ref="r1" lane="1" name="Rich" start="90292/25s">
                        <text roll-up-height="0">
                            <text-style ref="ts2">Basic Title</text-style>
                        </text>
                        <text-style-def id="ts2">
                            <text-style alignment="center" fontColor="1 1 1 1" bold="1" font="Open Sans" strokeColor="0 0 0 1" lineSpacing="0" italic="0" fontSize="96" strokeWidth="0"/>
                        </text-style-def>
                        <adjust-transform position="0 0" anchor="0 0" scale="1 1"/>
                    </title>
                    <title duration="5/1s" enabled="1" offset="92397/25s" ref="r1" lane="1" name="Rich" start="92397/25s">
                        <text roll-up-height="0">
                            <text-style ref="ts3">And me!</text-style>
                        </text>
                        <text-style-def id="ts3">
                            <text-style alignment="center" fontColor="1 1 1 1" bold="1" font="Open Sans" strokeColor="0 0 0 1" lineSpacing="0" italic="0" fontSize="96" strokeWidth="0"/>
                        </text-style-def>
                        <adjust-transform position="0 0" anchor="0 0" scale="1 1"/>
                    </title>
                </gap>
            </spine>
        </sequence>
    </project>
</fcpxml>

As for parsing the data, I'd probably write a script where, for every line beginning '<text-style ref="ts' it copied all text between the first '>' and the last '<' into an array.
Cheers
Andy
Resolve Studio 17.4.2 | Adobe CC 2021 | Desktop Video 12.1
AMD Ryzen 5950X | Windows 10 Pro 20H2 | 64GB RAM | GTX 1060 6GB | 462.31 | Decklink Mini Monitor
M1 MacBook Pro | macOS 11.2.1 | 16GB RAM | Ultrastudio Monitor 3G
V24G2 | WVR5000 | 8020B | USBPre
Offline

Peter Cave

  • Posts: 2706
  • Joined: Thu Aug 23, 2012 6:45 am
  • Location: Melbourne, Australia

Re: Easy way to export Text for proofingreading ?

PostThu Oct 21, 2021 11:25 pm

Thanks Andy.

There was a bug in the timeline I was using to export the XML. All good now.
Resolve 16.2.6 AND Resolve 17.3.1
Mac OSX 10.14.6, Hackintosh i7 8700 32GB RAM, Radeon RX 580 8GB
Decklink Studio 2, FSI LM1770 Monitor

Return to DaVinci Resolve

Who is online

Users browsing this forum: chbkoiklp457, crtkecnkl659, JanKocbek, jfykeaucq871, Wouter Bouwens and 77 guests