Copy link to clipboard
Copied
Hi All,
How to differentiate between normal clips and sub-clips using Premiere extendscipt API?
Like the ProjectItemType.FILE and ProjectItemType.BIN;
We Cannot use ProjectItemType because for normal clips and subclips its value is ProjectItemType.CLIP only
Thanks and Regards,
ANOOP NR
Copy link to clipboard
Copied
Hi Anoop,
there is a difference in the metadata.
If you use app.project.rootItem.children
<premierePrivateProjectMetaData:Column.Intrinsic.SubclipStart>hh:mm:ss:ff</premierePrivateProjectMetaData:Column.Intrinsic.SubclipStart>
<premierePrivateProjectMetaData:Column.Intrinsic.SubclipEnd>hh:mm:ss:ff</premierePrivateProjectMetaData:Column.Intrinsic.SubclipEnd>
<premierePrivateProjectMetaData:Column.Intrinsic.SubclipDuration>hh:mm:ss:ff</premierePrivateProjectMetaData:Column.Intrinsic.SubclipDuration>
which are the only direct indication that the projectItem is a subclip, so basically you just need to regex-match against the above result if you need "binary" handling (do something or don't).
Copy link to clipboard
Copied
What will that differentiation allow you to do, Anoop?
app.project.FindItemsMatchingMediaPath() will give you all instances of that same file in the project, but users can import multiple such instances without making any subclips...