UXP API: How to get Clip/ProjectItem Media Dimensions (Width/Height)?
Hello,
I need to get the source width and height of a selected timeline clip to accurately calculate anchor points.
Here is what I have tried:
-
Downcasting: Retrieved the
ProjectItembase item from the clip and cast it usingppro.ProjectItem.cast(baseItem)to aClipProjectItem. -
Checking child objects: *
clipProjectItem.getMedia()only exposesstartandduration.clipProjectItem.getFootageInterpretation()exposes frame rate and PAR, but no resolution. -
Metadata: Parsing
ppro.Metadata.getProjectMetadata()streams is failing to capture the properties.
What is the officially supported UXP method to extract the asset pixel dimensions of a source item?
