Closed orchetect closed 9 months ago
The logic is complete for this. Just need to add an API call to MarkersExtractor to return them.
@milanvarady roles extraction API has been added. Will be in 0.3.0.
There is a new extractor class called RolesExtractor
. Give it a FCPXMLFile
, similar to the MarkersExtractor
class.
Then call extract()
and an array of roles will be returned.
FinalCutPro.FCPXML.AnyRole
is a type-erased container for one of three concrete role types:
FinalCutPro.FCPXML.AudioRole
FinalCutPro.FCPXML.VideoRole
FinalCutPro.FCPXML.CaptionRole
You don't really need to unwrap the AnyRole
, you can get its role name and type just by using properties on it.
isAudio
, isVideo
and isCaption
properties can be used to check what type of role each one is.rawValue
property.
Add API call to return list of all roles used in a FCPXML project.