Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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: