Skip to main content
Participant
February 9, 2024
해결됨

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

  • February 9, 2024
  • 1 답변
  • 328 조회

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

 

이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

Bruce Bullis
Community Manager
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......