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

Read FootageItem source file duration in ExtendScript.

New Here ,
Feb 21, 2020 Feb 21, 2020

Copy link to clipboard

Copied

I have a question about jsx scripts in after effects.
Do you know any way to access the duration/length of the original source clip from inside the extendscript environment?
something like app.project.item(x).source.duration?

Or does anyone have an idea how to read the EXIF data of a source clip?

TOPICS
Expressions , FAQ , How to , Resources , Scripting , SDK

Views

487

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
Advocate ,
Feb 21, 2020 Feb 21, 2020

Copy link to clipboard

Copied

Well, there's this app.project.item(X).duration; 

Not sure about EXIF data though.

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 ,
Feb 24, 2020 Feb 24, 2020

Copy link to clipboard

Copied

thats just the length of the layer. i am looking for the length of the sourced file.

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
Advocate ,
Feb 24, 2020 Feb 24, 2020

Copy link to clipboard

Copied

LATEST

item.duration returns a duration of an item. There's no such concept as a length in After Effects.

http://docs.aenhancers.com/items/avitem/#avitem-duration

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 ,
Feb 24, 2020 Feb 24, 2020

Copy link to clipboard

Copied

solved it by building a cli  script and `system.callSystem()` it

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