Skip to main content
Known Participant
Jan 2, 2025 4:25 AM UTC
Answered

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

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.

Bruce Bullis
Bruce BullisCorrect answer
Legend
Jan 2, 2025 1:25 PM UTC

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
Jan 2, 2025 10:22 AM UTC

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?

Translate
干5FFBAuthor
Known Participant
Jan 2, 2025 11:13 AM UTC

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!

Translate
Bruce Bullis
Legend
Jan 2, 2025 11:33 AM UTC

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.

Translate