Check To See if Pan/Crop has Changed from a Script in Vegas

In this script, we look to see if Pan/Crop has been changed using a script. As there is no “Pan/Crop flag” to check, you need to check to see if there are multiple keyframes or if the size or rotation has changed. This script is based on information found in this forum post:

https://www.vegascreativesoftware.info/us/forum/select-all-events-that-have-custom-pan-crop-setting–137022/

After recording this tutorial, it was discovered that multiple keyframes – even if nothing is changed – does cause the Pan/Crop icon to light up on the timeline so it is recommended that you change this line to add a check for multiple keyframes:

if ((pcwidth != mWidth) || (pcheight != mHeight) || (vKF.Rotation != 0.0))

to

if ((pcwidth != mWidth) || (pcheight != mHeight) || (vKF.Rotation != 0.0) || (vKFCount > 1))

What scripts would you like to see? Any processes you’d like to see how to do using a script?

Please sign up here and leave comments with suggestions of tasks you would like to see automated. You can help guide the direction of these videos. Also, please subscribe to my YouTube channel.

Leave a Reply