Crop
This script will crop the parent composition of the layer based on that layer. This is the most useful script because it allows you to control the final duration of the video based on dynamic layers. For example, you can have a dynamic background video. You can apply the crop script to that video and the final, output video will be the same duration as the background video. Otherwise, the output video will always stay the same duration as it was set in the template.
There are the options for the crop script:
- Beginning - crops the beginning of a parent composition to the in-point (start) of this layer.
- End - crops the end of a parent composition to the out-point (end) of this layer.
Make sure that the asset you’re using in the template is longer than any asset that will be swapped out. The crop script won’t work if the placeholder asset is shorter than the one you’re swapping it out for.