Skip to main content
Known Participant
January 2, 2025
Answered

How to get clip‘s position xy in c++ plugin premiere pro sdk?

  • January 2, 2025
  • 5 replies
  • 450 views

How to get clip‘s position xy in c++ plugin premiere pro sdk?Because i want this position to join my plugin calculation!Please help me with that!I mean the value of motion - position in clip proprty.

Correct answer Bruce Bullis

sir,if the clips is not in the middle of the sequence,such as in the right or some corner,the center of the whole sequence is not the clip's center, if i miss something?


Your effect is applied to a layer, within a sequence. Your effect should never need to know about the sequence, containing its input layer.


Applying your effect to a nested sequence is the right approach, in the case you described.

5 replies

Bruce Bullis
Legend
January 2, 2025

Confirming: You're writing an After Effects API effect plugin, yes? 

If so, your effect is applied to an input layer; why would that effect need to "cheat", and know where that input layer is positioned within the sequence?

干5FFBAuthor
Known Participant
January 2, 2025

sir,i make a plugin which can make a clip scale or pan,but if i don't know the position,the scale will not from the middle of picture,this is why i need this!But if you have better way to find the center of the clip,please help me,thanks!

Bruce Bullis
Legend
January 2, 2025

The center of your effect's input layer can be found at "half the height, half the width". 

See the Shifter and Resizer samples, in the AE C++ SDK.