AE Custom UI Event -- which parameter is it for?
Several SDK samples show custom parameter UI, but they only have 1 each. And that assumption is baked into the handler (see below).
Is there a way to know in PF_Event_DRAW or PF_Event_DO_CLICK which parameter is receiving that event? it must be here...
Here's how the SDK samples do it... they just assume which parameter it is!
PF_Err DoDrag(PF_InData *in_data, PF_OutData *out_data, PF_ParamDef *params[], PF_LayerDef *output, PF_EventExtra*event_extra)
{
...
...
// params index hard coded! wont work
// for two custom params, will it :(
params[ECW_UI_COLOR]->u.cd.value.blue = someValue
...
...
}