0
How to get the value of an AE Angle param in Premiere GPU render SDK?
Community Beginner
,
/t5/premiere-pro-discussions/how-to-get-the-value-of-an-ae-angle-param-in-premiere-gpu-render-sdk/td-p/14444276
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
gary_o
AUTHOR
Community Beginner
,
LATEST
/t5/premiere-pro-discussions/how-to-get-the-value-of-an-ae-angle-param-in-premiere-gpu-render-sdk/m-p/14444321#M491870
Feb 23, 2024
Feb 23, 2024
Copy link to clipboard
Copied
Ha, I figured it out. Angles are float32, regular sliders are float64.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

