Skip to main content
Participant
February 9, 2024
Answered

How can Premiere scripts obtain the x, y, width, height of text

  • February 9, 2024
  • 1 reply
  • 328 views

I want to obtain the coordinates of the four corners, which are x, y, width, and height  by Premiere scripts

 

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

I'm not sure whether that information is available via API, but if it is, it'd be part of the component param stream; see PProPanel's .mogrt implementation for example code.

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
February 9, 2024

I'm not sure whether that information is available via API, but if it is, it'd be part of the component param stream; see PProPanel's .mogrt implementation for example code.

Participant
February 10, 2024

Thank you for your reply.

 

In fact, I have many clips, each with text on it.
I want to add cropping effects on the left and right sides of the text,
so I want to get the x, y, width, and height of the text.

 

But I'm sorry, I don't quite understand the example code you provided......