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

Read FootageItem source file duration in ExtendScript.

New Here ,
Feb 21, 2020 Feb 21, 2020

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
645
Translate
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

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

Not sure about EXIF data though.

Translate
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

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

Translate
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
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

Translate
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

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

Translate
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