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

Reading thisComp FPS?

Enthusiast ,
Jul 29, 2011 Jul 29, 2011

Copy link to clipboard

Copied

In this global expression:

timeToTimecode(t = time + thisComp.displayStartTime, timecodeBase = 30, isDuration = false)

Instead of being coded to 30, is it possible for timecodebase to read the current comp's FPS automatically?

TOPICS
Expressions

Views

3.4K

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
Enthusiast ,
Jul 29, 2011 Jul 29, 2011

Copy link to clipboard

Copied

You can do this:

timecodeBase = 1 / thisComp.frameDuration;

timeToTimecode(t = time + thisComp.displayStartTime, timecodeBase, isDuration = false);

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
Enthusiast ,
Jul 29, 2011 Jul 29, 2011

Copy link to clipboard

Copied

There must be some rounding issue, because the timecode generated doesn't match AE's timeline. It's off a few frames.

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
Enthusiast ,
Jul 29, 2011 Jul 29, 2011

Copy link to clipboard

Copied

It's hard to say. Could you give a bit more information? i.e. what's your comp frame rate? how does the timecode not match the timeline time display?

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
Enthusiast ,
Jul 30, 2011 Jul 30, 2011

Copy link to clipboard

Copied

In a 23.976FPS comp, here are a few of the incorrect times.

The comp starts at frame 0 / time 00:00:00

Animatic_Template-2-(0.00.00.png

Animatic_Template-2-(0.00.04.png

Animatic_Template-2-(0.00.042.png

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
Enthusiast ,
Jul 31, 2011 Jul 31, 2011

Copy link to clipboard

Copied

Yes, it seems with a comp frame rate of 23.976 the timeToTimecode() method mostly gives the wrong time, and this happens whether you use timecodeBase = 1/thisComp.frameDuration or timecodeBase = 23.976.

Could you use timeToCurrentFormat() instead? That seems to give the correct results.

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
Enthusiast ,
Aug 01, 2011 Aug 01, 2011

Copy link to clipboard

Copied

LATEST

Maybe. But this is for an animatic template for other designers to use. I can't guarantee if they will be using frames or timecode as the comp's native time format (everyone has their own preference), but I want to be sure to display both.

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