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: 86
  • 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

Andy Mees

  • Posts: 3254
  • 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.
Let's have a return to the glory days, when press releases for new versions included text like "...with over 300 new features and improvements that professional editors and colorists have asked for."
Offline

Darmouthz

  • Posts: 86
  • 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: 3796
  • 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 18.6.6 Mac OSX 14.4.1 Sonoma
Mac Studio Max 32GB
Offline

Andy Mees

  • Posts: 3254
  • 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
Let's have a return to the glory days, when press releases for new versions included text like "...with over 300 new features and improvements that professional editors and colorists have asked for."
Offline

Peter Cave

  • Posts: 3796
  • 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 18.6.6 Mac OSX 14.4.1 Sonoma
Mac Studio Max 32GB

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Christian Lessner, panos_mts, SteveW, Travis Tomas and 176 guests