Skip to main content
Participating Frequently
December 7, 2023
Answered

Premiere extendscript help with proxies

  • December 7, 2023
  • 1 reply
  • 402 views

Hi,

 

How would I get the resolution of a proxy via extendscript?  I am thinking I might need to temporarily import the proxy as a project item and the getProjectMetadata()  VideoInfo?

 

Is it possible to detach proxies using extendscript? I thought of setting a clip to offline, but the proxy still hangs around. 

 

Not sure if this is a bug or expected, but ProjectItem.canChangeMediaPath() seems to return true for virtual clips eg. adjustment layers, black video.

 

And +1 to being able to create an adjustment layer using extendscript.

thanks,

 

Jason

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

>How would I get the resolution of a proxy via extendscript?  I am thinking I might need to temporarily import the proxy as a project item and the getProjectMetadata()  VideoInfo?

That would work.

For PPro to think some media is a proxy, it'd have to be associated with a PPro projectItem, so it'd need to be imported. Metadata will have most of what your looking for; when proxies are active, you could get the projectItem's footageInterpretation.

I'm hopeful that changing the path of a synthetic projectItem,  which is never relied upon to have a path, is harmless. 🙂

>Is it possible to detach proxies using extendscript?

Yes

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
December 8, 2023

>How would I get the resolution of a proxy via extendscript?  I am thinking I might need to temporarily import the proxy as a project item and the getProjectMetadata()  VideoInfo?

That would work.

For PPro to think some media is a proxy, it'd have to be associated with a PPro projectItem, so it'd need to be imported. Metadata will have most of what your looking for; when proxies are active, you could get the projectItem's footageInterpretation.

I'm hopeful that changing the path of a synthetic projectItem,  which is never relied upon to have a path, is harmless. 🙂

>Is it possible to detach proxies using extendscript?

Yes

Participating Frequently
December 8, 2023

Thanks Bruce!

I could find any docs with ProjectItem.detachProxy() so that is a great discovery!

Regarding the paths of a synthetic projectItem, using   (cProjectItem.canProxy() || ProjectItem.hasProxy())  gave me what I wanted.