Skip to main content
Kamil Pekala
Inspiring
January 25, 2021
해결됨

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

  • January 25, 2021
  • 2 답변들
  • 1750 조회

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?

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

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

Kamil Pekala
Kamil Pekala작성자
Inspiring
January 26, 2021

before UXP-based extensibility becomes available. 

When one might expect that to come? Is it likely to be in 2021?

Bruce Bullis
Community Manager
Community Manager
January 26, 2021

No dates available; yes, we hope to offer initial third party UXP support in PPro, within 2021.

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