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

XMP Metadata: Different file path in Mac

Participant ,
Jun 20, 2017 Jun 20, 2017

Hi All,

I am importing same file from two different places in premiere pro (one from Project panel and other from Media Browser panel) in Mac. I have fetched their file path using XMP metadata, but the file paths of both project items are different!!

E.g.

File path when import file from Project panel:

/Users/user1/Documents/fil1.txt

File path when import file from Media Browser panel:

/Volumes/Macintosh HD/Users/user1/Documents/fil1.txt 

Here extra prefix "/Volumes/Macintosh HD" is added which creates an issue for us as we are comparing file paths with one another.

Code snippet to read file path:

var projectMetadata=currentChild.getProjectMetadata();

var xmp=new XMPMeta(projectMetadata);

var kPProPrivateProjectMetadataURI="http://ns.adobe.com/premierePrivateProjectMetaData/1.0/";

var filePath=xmp.getProperty(kPProPrivateProjectMetadataURI, "Column.Intrinsic.FilePath");

Premiere Pro Version: 11.1.0

Extension Type: Panel


Thanks & Regards
Meet Tank

TOPICS
SDK
1.6K
Translate
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 1 Correct answer

Adobe Employee , Jun 29, 2017 Jun 29, 2017

Right, but (desire for consistency aside) that 'issue' is receiving a completely valid and functional path...

Translate
Adobe Employee ,
Jun 21, 2017 Jun 21, 2017

Does projectItem.getMediaPath() return the same path, for each projectItem?

Translate
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
Participant ,
Jun 22, 2017 Jun 22, 2017

Same result with projectItem.getMediaPath() However, this is a good alternative of XMP metadata. I haven't come across this method as it is not available in API doc . Bruce Bullis Could you please make this method available in the document: Samples/api_doc.html at master · Adobe-CEP/Samples · GitHub

Thanks,
Meet

Translate
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 ,
Jun 27, 2017 Jun 27, 2017

Added.

Translate
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
Participant ,
Jun 27, 2017 Jun 27, 2017

Hello Bruce Bullis

In the previous comment I meant same result as file paths from xmp API. I got two different path using projectItem.getMediaPath() having extra prefix "/Volumes/Macintosh HD" in the file path which is imported from the media browser panel.

Is this a bug in Premiere Pro API on Mac? It is working properly on windows.

Thanks,
Meet

Translate
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 ,
Jun 27, 2017 Jun 27, 2017

Funny. I ran the test on Windows the same day you had posted the issue (also without it occurring there), but I thought "no wait, you don't need to post this because (s)he might have done this already, you see, (s)he's explicitly saying Mac...", and one week later.. gee.

Can you please try a different path on Mac, like "/Users/Public/PrTest/Project1/" . I imagine there's something wrong with the resolve of the currently logged in user's path (~/). Doesn't fix the original issue, but may provide some insight.

Best,

e.d.

Translate
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 ,
Jun 28, 2017 Jun 28, 2017

I don't think so; the path you got on Mac works as well, right?

Translate
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 ,
Jun 28, 2017 Jun 28, 2017

I tend to think the need is to have consistent behavior / consistent information across all platforms... personally, I'd rather have an absolute path across all platforms.

Translate
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
Participant ,
Jun 28, 2017 Jun 28, 2017

The need is consistent behavior irrespective of import methods being used. The point I wanted to address here is: I should get same file path, whether I import  a file from Project panel or Media Browser panel. Premiere pro behaves in a different way handling the file  imported from two different places.

Thanks,
Meet

Translate
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
Participant ,
Jun 28, 2017 Jun 28, 2017

No. The issue still exists on Mac.

Translate
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 ,
Jun 29, 2017 Jun 29, 2017
LATEST

Right, but (desire for consistency aside) that 'issue' is receiving a completely valid and functional path...

Translate
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