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

How to get the value of an AE Angle param in Premiere GPU render SDK?

Community Beginner ,
Feb 23, 2024 Feb 23, 2024

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
265
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
Community Beginner ,
Feb 23, 2024 Feb 23, 2024
LATEST

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

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