site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Darrin On Feb 11, 2009, at 10:58 AM, Steve Christensen wrote: On Feb 11, 2009, at 10:15 AM, Victor wrote: -----Original Message----- From: Steve Christensen [mailto:punster@mac.com] Sent: Wednesday, February 11, 2009 12:12 PM To: Victor Cc: pro-apps-dev@lists.apple.com Subject: Re: fcp parsing questions On Feb 11, 2009, at 7:32 AM, Victor wrote: I have to write Final Cut Pro plugin and the first task for it would be to retrieve names of video clips associated with the Final Cut project. My first question is: what SDK can I use to read from project file? So far I couldn't find anything pertinent in FxPlug SDK 1.2. Am I looking in the right place? The FxPlug SDK is the API for writing a FCP, FCE or Motion plugin that handles some form of rendering to a particular clip with which a particular instance of your effect class is associated. You don't normally worry about other clips in the project. If you have a reason to need information about various video clips, you would get that by sending an AppleEvent to the host application (FCP, FCE, Motion) and then parsing the returned XML. Documentation on those AppleEvents and the format of the returned XML are available on Apple's website. The original application I have to base my prospective plugin on has been written in Java. Would it be possible to implement FCP plugin in Java? The plugin API assumes an Objective-C plugin interface. If there's a way to call your Java code from within an Objective-C plugin wrapper, then I would think you should be able to do so. I've never tried to do something like that so that's the best answer I can give. _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/dcardani%40apple.com -- Darrin Cardani dcardani@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... Victor, It sounds like what you need is to use FCP XML. This is documented here: <http://developer.apple.com/documentation/AppleApplications/Reference/FinalCu...
You would have your users export their projects as XML then your application could read and/or write XML to do whatever it needs to do. You could do this in Java if you want to, as it would be a stand-alone application. I don't believe there is any publicly-available API for reading the contents of a FCP project. I suppose you could try figuring it out on your own but then you're, of course, in the potential position of having to periodically revise your code to handle new project formats. Steve, Thanks for the input. In my case I need to obtain the list of video clips before project is loaded ( e.g. while Final Cut is not yet running ), so can't send an event to application. Is there an alternative method for reading project file directly? Thanks again, Victor This email sent to dcardani@apple.com This email sent to site_archiver@lists.apple.com