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

Get the path to media opened in source monitor

Community Beginner ,
May 01, 2024 May 01, 2024

Copy link to clipboard

Copied

Hello,

 

Is there any way at all to get any information about what current media is opened in source monitor, such as the file path? I know we can open a project item or raw file paths in source monitor:

app.sourceMonitor.openProjectItem(someProjectItem)
app.sourceMonitor.openFilePath(someFilePath)

 

If there is no straight forward way to just get the path of whatever is opened in source monitor e.g. via the SourceMonitor object, is it simply impossible via any other method (event callbacks, inspecting project metadata etc)?

 

I have seen this thread and other that hints at such functionality being added soon, almost a decade ago: https://community.adobe.com/t5/premiere-pro-discussions/get-info-for-clip-loaded-in-source-monitor-u...

Where we see this comment from @Bruce Bullis :

 

Partial workaround = get the path from the Source monitor, then use app.project.findItemsMatchingMediaPath() to find related projectItems.

 

Reading that it sounds like there must be a way to actually "get the path from Source monitor". But how?? 🙂

 

Kind regard

TOPICS
SDK

Views

276

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

correct answers 3 Correct answers

Adobe Employee , May 01, 2024 May 01, 2024

There's no supported API that lets you obtain the path of the currently open media, from the Source monitor. 

 

Votes

Translate

Translate
Contributor , May 01, 2024 May 01, 2024

This should work:

 

app.sourceMonitor.getProjectItem().getMediaPath()

 

Votes

Translate

Translate
Adobe Employee , May 02, 2024 May 02, 2024

Ivan's right, if there is a projectItem corresponding to the media open in the Source monitor. 🙂

And, yes, that's a documentation bug; we'll add getProjectItem().

Votes

Translate

Translate
Adobe Employee ,
May 01, 2024 May 01, 2024

Copy link to clipboard

Copied

There's no supported API that lets you obtain the path of the currently open media, from the Source monitor. 

 

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
Community Beginner ,
May 01, 2024 May 01, 2024

Copy link to clipboard

Copied

No unsupported API:s (i.e. QE) either I suppose?

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 ,
May 01, 2024 May 01, 2024

Copy link to clipboard

Copied

Nothing an Adobe employee would recommend, on a public forum, no. 🙂

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
Community Beginner ,
May 01, 2024 May 01, 2024

Copy link to clipboard

Copied

Understood. Back to the drawing board it is!

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
Contributor ,
May 01, 2024 May 01, 2024

Copy link to clipboard

Copied

This should work:

 

app.sourceMonitor.getProjectItem().getMediaPath()

 

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
Community Beginner ,
May 02, 2024 May 02, 2024

Copy link to clipboard

Copied

Wow.. it actually seems like it does. That call does not seem to be documented anywhere for the SourceMonitor object as far as I can see. How did you figure that/where did you find it? 

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 ,
May 02, 2024 May 02, 2024

Copy link to clipboard

Copied

Ivan's right, if there is a projectItem corresponding to the media open in the Source monitor. 🙂

And, yes, that's a documentation bug; we'll add getProjectItem().

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
Contributor ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

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
Community Beginner ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

LATEST

Ah I did not know about that, very nice thank you!

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