Skip to main content
m1jackson
Inspiring
September 11, 2024
Question

Automation Blocks - Selection Exception

  • September 11, 2024
  • 1 reply
  • 206 views

I'm writing a script that I'd like to validate that a piece of footage has been selected and do something based on that selection. However, I want to make sure that it's clear that the script is based on a single selected piece of footage.

 

I'm trying to validate that a selection of ONE piece of footage is made, and write an alert message if there is "no selection" and if there are "too many selections".

 

What logic block do I use to see if a footage file is selected? Cause this ain't it.

 

This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
September 12, 2024

Hi, 

the "only selected project item" block stops with an error if there is not exactly one item selected.

If you want to handle the situation yourself, then you need to retrieve the list of selected items and check its length:

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects