Copy link to clipboard
Copied
I searched a lot but couldn't find the answer I wanted.
'A'comp is main, 'B'comp is audio Sauce in 'A'comp
How to set the length of A comp(main comp) to the same length as B comp? How to automate?
I will attach a file with a different length to B comp every time.
I hope that the length of B comp will be adjusted according to the length of the attached file every time I work.
Copy link to clipboard
Copied
Hi Dodam,
Expressions can only change the value of the property they are applied to. They cannot change the duration of a comp or anything else in your project. What you need for this is to write a script. The simples way to write scripts is using my extension Automation Blocks, which is currently in free beta testing phase:
https://aescripts.com/automation-blocks-for-after-effects/
With Automation Blocks you use blocks instead of programming code.
This example searches for a composition with name "B" and for a layer with name "music" inside that comp. It then sets the duration of the comp to the duration of that layer.
Copy link to clipboard
Copied
Thanks! mathias.
I'll try the way you told me.
Thank you very much for your answer and help.