I want to create a script that crops a clip to the camera, without actually cropping or changing the resolution. I would read the camera (which is not animated, just a single camera position) parameters and transform the content of the clip to match the camera frame.
I can find a command for panning (TV_Panning), but not transforming. But maybe it's hidden somewhere or maybe there is another way?
The code would look something like this, perhaps I'd need to run it on all frames and layers too, but I can't figure out how to transform:
Code: Select all
tv_CameraEnumPoints
PARSE result camX camY camAngle camSize
tv_Transform -camX -camY -camAngle camSize