ExtendScript Metadata - Get Clips Field Type
Hi, I'm working on a panel for Premiere Pro and I'm working on metadata, especially fieldType.
I need to find the field type of the sequence, which works like this:
var timelineFieldType = app.project.activeSequence.getSettings().videoFieldType;
which returns a code (0 for progressive, 1 or 2 for interlaced), which is perfect.
Now I need to find the fieldType of each clip in the sequence, which I do like this:
var kPProPrivateProjectMetadataURI = "http://ns.adobe.com/premierePrivateProjectMetaData/1.0/";
var xmp = new XMPMeta(videoTracks[0].clips[0].projectItem.getProjectMetadata());
var currentClipFieldType = xmp.getProperty(kPProPrivateProjectMetadataURI, "Column.PropertyText.FieldOrder");
But this method doesn't return a code, but a label. For example in French, for a progressive video it says "Aucune Trame".
My problem is that my panel has to work in several languages, so the label will change, so I'm wondering if there's any way to retrieve a clip's fieldType as an integer (the same way as the sequence's fieldType) instead of a label?
Thanks



