-
Automatically fit a rotated layer to comp dimensions
I have a full screen layer (an animated precomp) that I’d like to allow users to adjust the rotation of, with the scale property being dynamically altered to fill the composition. It doesn’t matter that the scale values aren’t uniform, I just need to make sure there are no gaps.
For instance, at a rotation value of 45 degrees the layer has to scale up to an arbitrary value of 110,198, so its bounding box fills the comp corners.
Does anyone know how to connect the scale of a layer to its rotation so it always fills the entire composition? I wonder, also, if would it be easier to calculate if the layer was square (currently 1920×1080).