Skip to main content
Inspiring
December 2, 2024
Answered

Are there some programmatically (ExtendScript) accessible pproj metadata

  • December 2, 2024
  • 7 replies
  • 607 views

I am trying to store some information (textual json, on smaller side) directly to `.pproj` file metadata (via ExtendedScript), but I cannot find if it is actually possible. 

I managed to do it in AfterEffects and Photoshop via `app.project.xmpPacket`
(In PS it is then visible under File > File Info)


I was looking for something similar in Premiere, I found this:

but it seems that are metadata about imported files only.
Example on Github always points to some `projectItem` https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx#L1000 , but I would like to have access to metadata (to store and retrieve) in completely empty `.pproj`.

Stored metadata aren't necessary user editable, but I would need them to be persistent from one launch to another.

I might need to create some 'sidecar' json file living next to `.pproj`, but I would rather like to have it directly encapsulated in `.pproj`.
Would it be possible to import or create some 'invisible projectItem' and use that one for storing metadata on that level? What would be appropriate data type for such projectItem?

Any comments or feedback welcomed. Thanks.



 

This topic has been closed for replies.
Correct answer Bruce Bullis

Your research is correct; there is no concept of metadata values, unrelated to actual media.

What's an example of the information you're hoping to store?

Some developers have had success 'leaving themselves breadcrumbs' by checking for the existence of a given field, in the PPro private project metadata for a projectItem.

https://github.com/Adobe-CEP/Samples/blob/9efca02ea88ad32a8c22571f5ffe2407ae732cd8/PProPanel/jsx/PPRO/Premiere.jsx#L991


7 replies

Bruce Bullis
Bruce BullisCorrect answer
Legend
December 2, 2024

Your research is correct; there is no concept of metadata values, unrelated to actual media.

What's an example of the information you're hoping to store?

Some developers have had success 'leaving themselves breadcrumbs' by checking for the existence of a given field, in the PPro private project metadata for a projectItem.

https://github.com/Adobe-CEP/Samples/blob/9efca02ea88ad32a8c22571f5ffe2407ae732cd8/PProPanel/jsx/PPRO/Premiere.jsx#L991


Inspiring
December 3, 2024

I would need various json-like information about flags necessary for publishing process, which would control publishing logic (state of some validations for current version of loaded footage etc.) I dont think they are 1:1 matching to projectItem, there are some needed metadata about `.pproject` file itself. 

I am leaning into creating some "dummy projectItem", marking it as "metadata" and storing json on its private project metadata. Still not sure if "empty projectItem", eg. not pointing to any real physical file is possible in Premiere.

But thanks for confirmation of my guess and quick reply:).

Bruce Bullis
Legend
December 3, 2024

A specially-named bin might be the right sort of projectItem...?