Not really. This will never work for a million reasons. You're trying to be über-efficient for all the wrong reasons. The obvious answer is that you need to restructure your project, otherwise you will have to keep frying your brain over the temporal logic and implement complex expressions that compensate for things like users changing in-points and durations, trimming stuff and so on. It is inevitably bound to fail.
thanks for the response. Unfortunately, doing it manually is not an option. I want to create a robust and adaptable template, which can be adjusted for around 40 video clips of 4 or 5 different sizes. I need to find a way to be able to transition between each one using the same style of animation and be able to easily switch between one clip and another. The planes in the animation would need to be video. I think that "inevitably bound to fail" and "never work for a million reasons" isn't really helpful. I appreciate your response but there must be a way to do this. If I need to restructure my project then a point in the right direction or insight into a handful of these million reasons, would be much more helpful.
To better illustrate what I want to achieve here is GIF of the animation. It consists of 4 comps at the moment...
- 300x250 Static
- 300x250 > 728x250 Transition
- 728x250 > 728x90 Transition
- 728x90 Static
I want to put video into these transitions and be able to create a showreel of several videos. In my experience taking the time to be efficient save much time in the long run and if there is need to completely restructure then I would love to hear your suggestions as to how you would do it.
Are you scaling for your transition or adjusting a mask. If you are scaling then you can write an expression that looks at the in and out point of the video and animates the transition based on height and width sliders or based on the frame size of the layer. For example if you have a layer that is 300 X 200 you could write an expression that sampled the height and width of the layer, then looked for the out point and backed up a certain amount of time and started to scale X and Y from the original size to 720 X 250 and then faded out of that layer. You could save that as an animation preset.
Now you add another layer that is 720 X 250 and you write an expression that looks at the in and out point of the layer and starts a measured fade in then a scale value to change it to 729 X 90 and holds until the out point.
Now you just sequence your layers by the overlap set in your expression using the Keyframe Assistant then apply the animation presets to the first layer and then to the second layer.
The problem in us working out a solution is that we don't know the original size of the footage, whether you want to scale it, whether you want to animate masks. There are just too many variables. I have about 250 animation presets in my library that I have written over the years. About 200 of them are for layer transitions based on in and out point. For example if I want to have layers fly in from the left, bounce to a stop and then fall off the bottom of the screen I can use the animation preset. If I have 50 layers all set up in Illustrator on separate layers I can import the file as a comp retaining layer sizes, select all layers in the comp, trim them to 4 seconds, sequence the layers with a 20 frame overlap, select all of the layers and apply my fly in bounce, drop out animation preset and each layer will fly in to it's original position in 20 frames, bounce to a stop for 10 frames and then 20 frames before the end of the layer it will start to scale in Y and fall off the screen completely exiting on the out point. No need for a template.
The other thing that you may not be understanding about building templates is that you can build your first animation using whatever footage you want, then you can pre-compose each animated layer, leaving each attribute in the original comp, then you just open up the pre-comps and drop in new footage. If the file is saved as a template then you can't save over it and foul it up unless you really try hard.