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

Automation Blocks - Selection Exception

Contributor ,
Sep 11, 2024 Sep 11, 2024

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.

SelectionLogic.png

 

TOPICS
Scripting

Views

61

Translate

Translate

Report

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
Community Expert ,
Sep 12, 2024 Sep 12, 2024

Copy link to clipboard

Copied

LATEST

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:

Screenshot 2024-09-12 at 15.15.27.png

 

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

Votes

Translate

Translate

Report

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