Hey there,
I am using the AE/PPRO SDKs for custom filter development and I am facing the following issues:
I created a custom UI with highly customized, "self-drawn" slider parameters, using arbitrary data parameters to store their values. That is all working fine - but seems to be incredibly heavy lifting for my machine. Handling the Drag-Event within the custom UI, I check if the drag appears on the slider, set the value of an arbParam and mark:
params[ECW_UI_COLOR]->uu.change_flags |= PF_ChangeFlag_CHANGED_VALUE;
-> leading to redrawing of the interface. What seems to be really heavy tho appears to be the arbitrary parameter update, which I don't really understand.
I also checked the ColorGrid example implementation and observed an analogue behaviour, though not as bad because it doesn't have my crazy drag events. ;-)
My first question now is:
Is there any alternative for me, to store and update temporary/session-like data (like the actual value of my custom slider) other than directly into arbParams? (then I could store only the last slider value on Mouse_Exit into arb for example..)
---
I am also using the DrawImage function from the SurfaceSuite and don't understand how the HIDPI AND RETINA DISPLAY SUPPORT should work.
I am using NewImageFromBuffer and DrawImage to load and position a png onto the surface - which is working nicely - but don't understand the documentation for the Transform function to scale my image down on hi-res screens. My questions are:
- What is const DRAWBOT_MatrixF32 * in_matrixP supposed to be / How would it be used and what are the value within the matrix for?
- Documentation says To support HiDPI and Retina Displays, you can use offscreen images that are twice the size, and then use the Transform function to scale the image down in half before drawing it. How would I use the transform function on the image when Transform gets the surface_ref??
I think a very simple example would save my life since I've tried almost everything I could imagine..
Help would highly be appreciated and please excuse my probably bad explanation, I'm pretty new in this whole After Effects SDK world. ;-)
Thanks in advance and greetings from Hamburg, Germany!
Marcel