• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to differentiate between normal clips and sub-clips

Participant ,
Mar 08, 2017 Mar 08, 2017

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

TOPICS
SDK

Views

403

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 25, 2017 Jul 25, 2017

Copy link to clipboard

Copied

Hi Anoop,

there is a difference in the metadata.

If you use app.project.rootItem.children.getProjectMetadata(); , you'll have 3 entries like

<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).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 27, 2017 Jul 27, 2017

Copy link to clipboard

Copied

LATEST

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines