Question to expression. comp length(stretch)

New Here ,
Jul 14, 2022 Jul 14, 2022

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.

TOPICS
Expressions , FAQ , Scripting

Views

86

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 15, 2022 Jul 15, 2022

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.
Screenshot 2022-07-15 at 14.46.52.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 19, 2022 Jul 19, 2022

Copy link to clipboard

Copied

LATEST

Thanks! mathias.

 

I'll try the way you told me.

Thank you very much for your answer and help.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines