• 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 get the value of an AE Angle param in Premiere GPU render SDK?

New Here ,
Feb 23, 2024 Feb 23, 2024

Copy link to clipboard

Copied

I'm writing a simple AE effect plugin using the usual SDK. I have an angle param:

 

  PF_ADD_ANGLE("Pan", 0, 123);

 

and in AE I get the value the usual way (using a macro):

 

  pan = (double)(panV.u.ad.value >> 16) + (double)(panV.u.ad.value & 0xffff) / 65536.0;

 

But now I'm trying to implement direct GPU rendering for Premiere, following the Vignette example in the Premiere SDK. That SDK has a different way to get param values using "GetParam(id, time)", and it works fine for regular float sliders, but my angle params all come through as 0.0.

There's not a lot of doc on the the GetParam function, which is in VideoSegmentSuite. Does anyone know how to get angle param values in this case?

TOPICS
SDK

Views

98

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 23, 2024 Feb 23, 2024

Copy link to clipboard

Copied

LATEST

Ha, I figured it out. Angles are float32, regular sliders are float64.

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