Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Aug 14, 2024 Aug 14, 2024

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.

TOPICS
Editing , Error or problem
114
Translate
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
no replies

Have something to add?

Join the conversation