How to apply a Pan/Crop preset to a media event?

Julian-M wrote on 9/30/2024, 3:53 PM

Hello! πŸ‘‹Β I want to optimize the process of switching from 9:16 to 16:9 aspect ratio within one project.
For this, I want to combine a script that rotates the selected video events (thanks to the video from JETDV I have this code 😁) with a script that changes the Pan/Crop preset of the selected media event to a custom preset by its name πŸ”„.
Unfortunately, I did not find direct information about changing the Pan/Crop preset of a media event in the API πŸ€·β€β™‚οΈ.
ChatGPT was also unable to help with this.
Is it possible to implement such a function as a script❓
I would be grateful for your help! πŸ™

Comments

jetdv wrote on 10/1/2024, 7:18 AM

Change it the way you want it, then use a script to "read" the Top Left/Right and Bottom Left/Right.

Now make a script that changes the Top Left/Right and Bottom Left/Right to those values.

You can't see the Pan/Crop "presets" from a script.

Julian-M wrote on 10/1/2024, 11:44 AM

Thank you very much, Sir, for explaining to me how this can be done! πŸ‘
I will try it! πŸ”Ž