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?
Copy link to clipboard
Copied
Ha, I figured it out. Angles are float32, regular sliders are float64.