Custom Parameter Questions & Workflow Help (SDK)
Hi gang;
I am attempting to make my first custom parameter. In particular, I am trying to achieve something pretty much identical to the "Opacity Map" custom ECW paramter found in "CC Particle World", where a user can draw a curve which defines a particle's opacity of it's lifetime. This is what it looks like:

Despite having carefully reviewed the UI examples that ship with the SDK, I am totally in the blind. The closest example is probable the "Custom_ECW_UI" sample.
So I have some questions I could really use some help on for guidance:
1 - In order to store the time-dependent values of the curve, I have created a vector array. I am storing the user input in the vector when the user draws the curve. The values are inserted into the vector array in the DrawEvent function. However, the vector array needs to be global in order to be accessed from the SmartRender function and I keep seeing that global variables are bad. Is this the wrong approach? Is there a different approach I should be using for storing the values?
2 - Having stored the user input in the vector array, I need to somehow force AE to re-render from the DrawEvent function. Otherwise, the stored values aren't used unless I do a total purge of "All Memory & Disk Cache". "CC Particle World" works how I want it to work where the input is continually reflected in the render as the user drags the mouse across the parameter window. I need to do the same. Is there a way to force rerender from the DrawEvent in order to see these changes reflect in the render?
3 - I am using an "PF_ADD_ARBITRARY2" parameter for the custom parameter. My understanding is that these are parameters that can accept all types of inout like color, position, angles, etc. Is this correct? In my case, I need to store values over time so I'm not using except as simply the drawing panel. Hence why I am using a vector array for storage.
Any help regarding the above questions would be really helpfull, as well as any other pointers or tips which would be highly welcome as I feel like I'm completely in the dark over here!
Thanks!
-Richard
