Skip to main content
Known Participant
October 2, 2024
Question

Automation Blocks - Need to automate reducing a comp by 40 handles on either side and shorten comp

  • October 2, 2024
  • 2 replies
  • 1301 views

Hi,

 

I'm needing to take some footage that contains 48 frame handles (I know, right?) and reduce them to 8 frame handles, make the comp that duration plus one frame (for the slate), and place that footage into a precomp.

 

I'm really having difficulty with it...

 

Thank you for your time!

This topic has been closed for replies.

2 replies

Mathias Moehl
Community Expert
Community Expert
October 3, 2024

I just added a new block script to the Community Library for you. 

You find it at

Comps/Batch Create/For Each Selected Clip Create New Comp And Trim.xml

 

You can simply select some clips in the project panel and run the tool. It creates for each clip a corresponding comp and puts the clip in that comp. In the inputs panel you can enter a number of frames which should be trimmed from the beginning and the end.

If you set these input params to trim 39 frames from the beginning and 40 from the end, I think you get what you want. (39, since you want the extra frame for the slate).

 

Here is the code of the block script explained:

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
ckuehneAuthor
Known Participant
October 3, 2024

(corrected unclear grammar)

 

Hi!

 

I'm sorry, I loaded this up and realized I wasn't clear in what I was requesting, and I wasn't able to take that and figure it out.

 

I currently have a comp I use as a template, so I do not want a brand new comp created, but would like the comp I have pre-made to have it's duration shorter without handles, leaving one frame at the beginning for a slate.

 

What I have now is a "pre-made" comp, which has a very long duration, because I don't know how long the duration needs to be.

I drop footage into my "pre-made" comp, so it is automatically the top layer (the default for After Effects, as I'm sure you know)

What I would like to do is take the footage, which is already selected, by default, and remove 40 frame handles from either side, shift that footage inside the comp "to the right", by one, leaving the first frame for a slate, and then make that current comp the new duration of the comp, plus one for the slate. Then take that footage, with handles removed and put that into a pre-comp. Hopefully, that makes sense.

Thank you, so much, for your time and help. 

Mathias Moehl
Community Expert
Community Expert
October 4, 2024

So instead of the block which creates a new comp, you probably want to use a block to duplicate your template comp. Since the block which duplicates the comp keeps its duration unchanged, you need to then set the duration using the Set Attribute of Comp block.

After that, inserting the new layer, changing its in point and start time should work exactly as in my example.

All you need to do is to duplicate a comp instead of creating a new one and setting the duration after the duplication.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Community Expert
October 3, 2024

what do you mean by "handles" and what do you mean by "reduce"?

i don't understand the situation...