Cool idea, Pascal! I created the following two tools for you:
1) Create 2D Position Nulls for All Selected 3D Layers.xml
2) Create Power Pin Stabilized Precomp from 4 Corner Nulls.xml
they are both in the Community Library now, too.
Usage:
Select the four 3d null layers you obtain from your tracker for the 4 corners of the precomp, then run the first tool. It will create for each of the 3d nulls a corresponding 2d null with the same position (using the toComp expression).
Then select the four 2D nulls you just created and also select the footage layer and run the second tool. It will replace the footage layer by a stabilized precomp using CC Power Pin effects. The corners of the stabilized precomp will be linked to the 2D null layers.
Things to be aware of:
- When running the second script, make sure to select the null layers in the same order as the corners are listed in the CC Power Pin effect, i.e. Top Left, Top Right, Bottom Left, Bottom Right
- make sure all layers and comps have unique names. If all nulls have the same name, the expressions are not able to find the right layer
PS: Next week I have a session at the Video Creators Virtual Summit about Automation Blocks for Ae. This will be a good opportunity to learn more about the tool and it is free to attend (but requires registration).