Skip to main content
Participant
July 14, 2026
Answered

UXP API: How to get Clip/ProjectItem Media Dimensions (Width/Height)?

  • July 14, 2026
  • 6 replies
  • 56 views

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:

  1. Downcasting: Retrieved the ProjectItem base item from the clip and cast it using ppro.ProjectItem.cast(baseItem) to a ClipProjectItem.

  2. Checking child objects: * clipProjectItem.getMedia() only exposes start and durationclipProjectItem.getFootageInterpretation() exposes frame rate and PAR, but no resolution.

  3. 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?

    Correct answer Inspiring_Smile6C2C

    Tinkered around a little more with this. Was able to get the dimensions for all footage types using ppro.Metadata.getProjectColumnsMetadata();

    Thank you so much for pointing me the correct direction! 

    6 replies

    Bruce Bullis
    Legend
    July 23, 2026

    You were close!

    The dimensions of projectItems (at least, those that have dimensions) are available in the item’s XMP metadata: 

    ppro.Metadata.getXMPMetadata()

     

    Participant
    July 24, 2026

    Many thanks! I got a really comprehensive output for .mp4 videos. Adding a snippet here.

     

    xmp:CreateDate "2026-05-01T12:40:50Z"
    xmp:ModifyDate "2026-05-01T19:16:23+05:30"
    xmp:MetadataDate "2026-05-01T19:16:23+05:30"
    xmp:CreatorTool "Adobe Premiere Pro 2026.0 (Macintosh)"
    xmpDM:videoFrameRate "23.976024"
    xmpDM:videoFieldOrder "Progressive"
    xmpDM:videoPixelAspectRatio "1/1"
    xmpDM:audioSampleRate "48000"
    xmpDM:audioSampleType "16Int"
    xmpDM:audioChannelType "Stereo"
    xmpDM:startTimeScale "24000"
    xmpDM:startTimeSampleSize "1001"
    xmpDM:type "movie"
    stDim:w "3840"
    stDim:h "2160"



    However, it gave an output like this for a .mov file. Still not able to find the height/width of this video.
     

     
    xmp:CreateDate "2026-07-12T20:46:20Z"
    xmp:ModifyDate "2026-07-24T23:59:16+05:30"
    xmp:MetadataDate "2026-07-24T23:59:16+05:30"
    xmpDM:value "312312"
    xmpDM:scale "1/24000"
    xmpDM:startTimeScale "24000"
    xmpDM:startTimeSampleSize "1001"
    xmpDM:timeValue "02:35:42:22"
    xmpDM:timeFormat "23976Timecode"
    tiff:Orientation "1"
    xmpMM:InstanceID "802a9588-c12b-fc5f-0104-82f300000078"
    xmpMM:DocumentID "54214e53-6dbb-8832-37d8-9c7b0000004b"
    xmpMM:OriginalDocumentID "xmp.did:6cd76596-083d-426c-92f8-aee238db2162"
    stEvt:action "saved"
    stEvt:instanceID "802a9588-c12b-fc5f-0104-82f300000078"
    stEvt:when "2026-07-24T23:59:16+05:30"
    stEvt:softwareAgent "Adobe Premiere Pro 2026.0 (Macintosh)"
    stEvt:changed "/"
    x:xmptk "Adobe XMP Core 10.0-c000 26.GD02.7bdc8c5, 2026/02/11-15:24:47"
    rdf:parseType

    "Resource"

    Inspiring_Smile6C2CAuthorCorrect answer
    Participant
    July 24, 2026

    Tinkered around a little more with this. Was able to get the dimensions for all footage types using ppro.Metadata.getProjectColumnsMetadata();

    Thank you so much for pointing me the correct direction! 

    Community Manager
    July 14, 2026

    Hi,

    Not sure if that is supported. See: https://adobe.ly/4wfcRBa
    What is it you're trying to do, exactly? Let us know.


    Thanks,
    Kevin

    Participant
    July 15, 2026

    I’m trying to update the Anchor Point of a clip. The only way I know how is to use AnchorPointX / ClipWidth

     

    Is there a better way to do this?

    Community Manager
    July 16, 2026

    I’ll try and get the team to respond to this question. Thanks for your patience.

     

    Cheers,
    Kevin