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

AEGP: Time remap value handling.

New Here ,
Jun 19, 2008 Jun 19, 2008

Copy link to clipboard

Copied

When we access AEGP_LayerStream_TIME_REMAP in one of our plugins we get handed back an A_FpLong, but many of the things we need it for need to be calculated as A_Time values.

It is of course possible to do the conversion ourselves, by taking the framerate, duration, and (everything else?) into account, but this feels dodgy and error prone.

Is there some nice built-in that we're missing to do this conversion correctly?

Thanks,
-Harold
TOPICS
SDK

Views

1.2K

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
Adobe Employee ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

LATEST
How about the following, from AEGP_UtilitySuite? A_Time's and A_Ratio's are pretty similar. :)

SPAPI A_Err (*AEGP_ConvertFpLongToHSFRatio)(
A_FpLong numberF, /* >> */
A_Ratio *ratioPR); /* << */

SPAPI A_Err (*AEGP_ConvertHSFRatioToFpLong)(
A_Ratio ratioR, /* << */
A_FpLong *numberPF); /* >> */

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