Script to resize all layers to fit composition
I have a script to resize my compositions. But how would I make all the layers in the composition fit that composition size by using a script?
I have a script to resize my compositions. But how would I make all the layers in the composition fit that composition size by using a script?
Getting the "visible bounds" can be very tricky.
There is the method AVLayer.sourceRectAtTime() which gives you those bounds in layer space and with
AVLayer.sourcePointToComp() you can convert those four corners to comp space.
However, this only takes layer transforms into account. If you have effects changing the content (like a corner pin or some warp effects) the actual visible layer could have very different visible bounds again.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.