Skip to main content
Kamil Pekala
Inspiring
January 25, 2021
Answered

How to find out if a clip was "scaled to frame size" in a CEP extension

  • January 25, 2021
  • 2 replies
  • 1750 views

How can I find out if a clip on the timeline has been "scaled to frame size"

 

With "set to frame size" I can just read the scale from the Motion effect's scale property but when "scale to frame size" was used then I can't.

 

How can I find it out?

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

There is API to set that state, but no API to get that state. 

 

It's unlikely we'll add an accessor method to the ExtendScript API, before UXP-based extensibility becomes available. 

2 replies

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
January 26, 2021

There is API to set that state, but no API to get that state. 

 

It's unlikely we'll add an accessor method to the ExtendScript API, before UXP-based extensibility becomes available. 

Known Participant
February 4, 2021

Added a Uservoice feature request for this. I would argue this is a critical enough Extendscript omission that it should also be added to Extendscript, particularly given the long transition period envisioned for UXP. Because of this issue, any extension that in some way needs to manipulate or understand scale, position, or clip dimensions, won't work correctly on clips that have been scaled to frame size. 

 

https://adobe-video.uservoice.com/forums/911233-premiere-pro/suggestions/42627046-api-to-determine-if-a-timeline-clip-has-scale-to

Kamil Pekala
Inspiring
February 4, 2021

Thanks dheidel

 

any extension that in some way needs to manipulate or understand scale, position, or clip dimensions, won't work correctly on clips that have been scaled to frame size. 



Which is exactly the case with my Drag Zoom Pro extension 😞 - available on Exchange.

Ann Bens
Community Expert
Community Expert
January 25, 2021

Scale to framesize will alway be 100% if that is any help.

Set to framesize can be anything including 100%. Only way to find out to right click on clip.

Kamil Pekala
Inspiring
January 25, 2021

It's not because a clip with let's say a lower resolution that hasn't been "scaled to frame size" will also show 100% there.

 

By looking at the Motion property I can tell whether the clip has been "scaled" or not by looking at the values of Position and Anchor Point i.e. Position values correspond to sequence dimensions, while Anchor Point values correspond to the clip original dimensions. But reading Position and Anchor Point values in ExtendScript always returns relative values i.e. [0.5, 0.5] for both. 

Ann Bens
Community Expert
Community Expert
January 25, 2021

Ah this a cep question, did not realize.