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

How to Extract the Largest Value - Automation Blocks - After Effects

New Here ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

I am getting multiple values from a layer property and saving them in a CSV file. However, I want to extract only the largest number (e.g., 7.1). You can see the attached image for reference.

 

How can I retrieve only the largest value, either using a CSV file or without saving to a CSV?

 

What blocks or logic can I use to apply this functionality in different scripts?

Thank you in advance for your help!

TOPICS
Error or problem , Expressions , FAQ , How to , Scripting , User interface or workspaces

Views

52

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

correct answers 1 Correct answer

Community Expert , Jan 10, 2025 Jan 10, 2025

Save the values in a list, then get the max of that list.

If you obtain the values by looping over layer properties, you can also compute the maximum on the fly while looping over the values Here is an example that uses this approach to compute the max opacity of all layers in the active comp:

Screenshot 2025-01-10 at 17.27.37.png

Votes

Translate

Translate
Community Expert ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

Save the values in a list, then get the max of that list.

If you obtain the values by looping over layer properties, you can also compute the maximum on the fly while looping over the values Here is an example that uses this approach to compute the max opacity of all layers in the active comp:

Screenshot 2025-01-10 at 17.27.37.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
New Here ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

LATEST

I am using so many great plugins and scripts, but Automation Blocks has truly been a life-changing tool. Thank you for your fast reply! I now understand how to save the values and use the List Block effectively. With this knowledge, I was able to create my own script using Automation Blocks.

Thank you so much—Automation Blocks is incredibly powerful!

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