Re: Importing XML into FCP; Video not connecting correctly
Re: Importing XML into FCP; Video not connecting correctly
- Subject: Re: Importing XML into FCP; Video not connecting correctly
- From: Helena Ju <email@hidden>
- Date: Tue, 2 Dec 2008 17:10:13 -0800
Hi David!
To indicate to Final Cut Pro that any part is shared (in this case you
want to share a file between many different <clipitem>s in a sequence,
right?) you'll need to
(a) put the XML in for that object
(b) use an 'id' attribute in the XML to indicate an identifier for the
object
(c) subsequent re-useages of the same part should reuse the same 'id'.
So in your case:
(a) you'd put something like the below snippet in the first <clipitem>
that uses the <file> ( note that the required elements of <file> are
specified on this website:
http://developer.apple.com/documentation/AppleApplications/Reference/FinalCutPro_XML/Elements/chapter_5_section_3.html#/
/apple_ref/doc/uid/TP30001156-TPXREF105 )
:
<file id="file1">
<name>myFile>
<duration> 33224 </duration>
<rate><ntsc>FALSE</ntsc><timebase>30</timebase></rate>
</file>
(b) note that it has an id attribute named "file1"
(c) in subsequent clipitems that should use the same file you can add:
<file id="file1"/>
(this notation is the same as saying: <file id="file1"></file>)
To indicate that you're reusing the same file.
Then when you reconnect the first one, the subsequent ones will also
be reconnected.
Best Luck!
Helena
On Dec 2, 2008, at 4:54 PM, David Harris wrote:
Hello,
I am creating an XML file from scratch that I am trying to import
into FCP 5. I have everything working perfectly except that when I
attempt to reconnect the footage to the clips, FCP only connects the
individual clips (not all instances of "Input1"). In other words, I
am trying to make it so that when I reconnect the first instance of,
say Input3, all the other instances of Input3 reconnect to the same
file. I know it is a tag that I am missing, I just can't figure out
which one.
I pasted the xml file into my post below.
Any help is greatly appreciated.
Dave
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE xmeml><xmeml
version='3'>
<sequence>
<name>Test</name>
<duration>1000000</duration><rate><ntsc>FALSE</ntsc><timebase>30</
timebase></rate><in>-1</in><out>-1</out><media><video><track>
<clipitem><name>Input1</name><rate><timebase>30</timebase></
rate><in>31235</in><out>31286</out><start>00054</start>
<end>00105</end><file><name>Input1</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input2</name><rate><timebase>30</timebase></
rate><in>31286</in><out>31417</out><start>00105</start>
<end>00236</end><file><name>Input2</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input3</name><rate><timebase>30</timebase></
rate><in>31417</in><out>31533</out><start>00236</start>
<end>00352</end><file><name>Input3</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input4</name><rate><timebase>30</timebase></
rate><in>31533</in><out>31567</out><start>00352</start>
<end>00386</end><file><name>Input4</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input5</name><rate><timebase>30</timebase></
rate><in>31567</in><out>31600</out><start>00386</start>
<end>00419</end><file><name>Input5</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input6</name><rate><timebase>30</timebase></
rate><in>31600</in><out>31627</out><start>00419</start>
<end>00446</end><file><name>Input6</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input7</name><rate><timebase>30</timebase></
rate><in>31627</in><out>31660</out><start>00446</start>
<end>00479</end><file><name>Input7</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input5</name><rate><timebase>30</timebase></
rate><in>31660</in><out>31702</out><start>00479</start>
<end>00521</end><file><name>Input5</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<transitionitem><rate><timebase>30</timebase></rate><start>00521</
start><end>00552</end><alignment>start</alignment>
<effect><name>Cross Dissolve</name><effectid>Cross Dissolve</
effectid></effect></transitionitem>
<clipitem><name>Input8</name><rate><timebase>30</timebase></
rate><in>31702</in><out>31850</out><start>00521</start>
<end>00669</end><file><name>Input8</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input1</name><rate><timebase>30</timebase></
rate><in>31850</in><out>31882</out><start>00669</start>
<end>00701</end><file><name>Input1</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input3</name><rate><timebase>30</timebase></
rate><in>31947</in><out>32042</out><start>00766</start>
<end>00861</end><file><name>Input3</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input6</name><rate><timebase>30</timebase></
rate><in>32042</in><out>32086</out><start>00861</start>
<end>00905</end><file><name>Input6</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input8</name><rate><timebase>30</timebase></
rate><in>32086</in><out>32150</out><start>00905</start>
<end>00969</end><file><name>Input8</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<transitionitem><rate><timebase>30</timebase></rate><start>00969</
start><end>01000</end><alignment>start</alignment>
<effect><name>Cross Dissolve</name><effectid>Cross Dissolve</
effectid></effect></transitionitem>
<clipitem><name>Input5</name><rate><timebase>30</timebase></
rate><in>32150</in><out>32337</out><start>00969</start>
<end>01156</end><file><name>Input5</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<transitionitem><rate><timebase>30</timebase></rate><start>01156</
start><end>01172</end><alignment>start</alignment>
<effect><name>Cross Dissolve</name><effectid>Cross Dissolve</
effectid></effect></transitionitem>
<clipitem><name>Input8</name><rate><timebase>30</timebase></
rate><in>32337</in><out>32426</out><start>01156</start>
<end>01245</end><file><name>Input8</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input4</name><rate><timebase>30</timebase></
rate><in>32426</in><out>32469</out><start>01245</start>
<end>01288</end><file><name>Input4</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input5</name><rate><timebase>30</timebase></
rate><in>32469</in><out>32511</out><start>01288</start>
<end>01330</end><file><name>Input5</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input2</name><rate><timebase>30</timebase></
rate><in>32511</in><out>32546</out><start>01330</start>
<end>01365</end><file><name>Input2</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input1</name><rate><timebase>30</timebase></
rate><in>32546</in><out>32595</out><start>01365</start>
<end>01414</end><file><name>Input1</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input4</name><rate><timebase>30</timebase></
rate><in>32595</in><out>32632</out><start>01414</start>
<end>01451</end><file><name>Input4</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input6</name><rate><timebase>30</timebase></
rate><in>32632</in><out>32678</out><start>01451</start>
<end>01497</end><file><name>Input6</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input1</name><rate><timebase>30</timebase></
rate><in>32678</in><out>32718</out><start>01497</start>
<end>01537</end><file><name>Input1</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input2</name><rate><timebase>30</timebase></
rate><in>32718</in><out>32751</out><start>01537</start>
<end>01570</end><file><name>Input2</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input3</name><rate><timebase>30</timebase></
rate><in>32751</in><out>32793</out><start>01570</start>
<end>01612</end><file><name>Input3</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input5</name><rate><timebase>30</timebase></
rate><in>32793</in><out>32934</out><start>01612</start>
<end>01753</end><file><name>Input5</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<transitionitem><rate><timebase>30</timebase></rate><start>01753</
start><end>01769</end><alignment>start</alignment>
<effect><name>Cross Dissolve</name><effectid>Cross Dissolve</
effectid></effect></transitionitem>
<clipitem><name>Input8</name><rate><timebase>30</timebase></
rate><in>32934</in><out>33107</out><start>01753</start>
<end>01926</end><file><name>Input8</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input5</name><rate><timebase>30</timebase></
rate><in>33107</in><out>33141</out><start>01926</start>
<end>01960</end><file><name>Input5</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input3</name><rate><timebase>30</timebase></
rate><in>33141</in><out>33179</out><start>01960</start>
<end>01998</end><file><name>Input3</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<clipitem><name>Input2</name><rate><timebase>30</timebase></
rate><in>33179</in><out>33224</out><start>01998</start>
<end>02043</end><file><name>Input2</name><rate><timebase>30</
timebase></rate><media><video></video></media></file></clipitem>
<enabled>TRUE</enabled><locked>FALSE</locked></track></video></
media></sequence>
</children>
</project>
</xmeml>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden