Skip to main content
Participating Frequently
August 14, 2024
Question

Can you remove clips from a sequence based on attributes with Automation Blocks?

  • August 14, 2024
  • 1 reply
  • 211 views

I am trying to set up an automation that removes clips from a sequence only, not the entire project, based on whether or not it's selected. Files attached for how I have it set up.

I started out using the clip.remove execute code as defined in the block reference, but that ended up only deleting every other clip in track 1. I then used chat GPT to modify the execute code.  So far I have it working but once it has successfully removed the clips, I get an error "execution result:could not find item 1 in track Video 7 (the track contains no items at all) (line 6)". This is because my clip.remove block is still going even after removing the selected clips. I am not sure how to revise the execution code so that it stops after successful removal. 


Files attached for how I currently have it set up. If anyone has a better solution to removing clips based on attributes that would be awesome. Ideally it would remove the clips if they are enabled (weird I know), but the way I currently have it set up it's based on whether or not the clip is selected.

Many many thanks to anyone who can help me understand this a little better, and happy to provide additional details/clarification.

1 reply

Kevin J. Monahan Jr.
Community Manager
Community Manager
July 22, 2025

Hi Ailia,

Thanks for the message. I will tag your post with "SDK" so that the proper people will see it. I hope it helps.

 

Thanks,
Kevin

 

Kevin Monahan - Sr. Community and Engagement Strategist – Adobe Pro Video and Audio