Copy link to clipboard
Copied
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.
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now