Change params valid_max/valid_min


i change slider match size of input data. these not defined @ setup time, try change them in updateui (i have tried paramchange).

 

the problem cannot change valid_min/valid_max values , remain stuck @ whatever value setup in paramssetup.

 

i use following code change slider:

 

pf_paramdef centerparams = *(params[param_s_protected_center]);

centerparams.u.fs_d.valid_max = (pf_fpshort)in_data->width;

centerparams.uu.change_flags = pf_changeflag_changed_value;

err(suites.paramutilssuite3()->pf_updateparamui(in_data->effect_ref, param_s_protected_center ,  &centerparams));

 

this nothing valid_max, missing something, or not possible?

 

help appreciated :-)

hi rasmus,

 

are developing effect plug-in use in after effects?  or premiere pro?

 

according header comments pf_updateparamui() in ae_effectsuites.h, valid_min/max not among parameters can changed.

 

ae holds strictly specification.  ppro more flexible in regard (i can explain, if developing ppro).

 

you define min/max widest possible range, , use pf_updateparamui() set ui range dynamically, according input data.

 

zac



More discussions in After Effects SDK


adobe

Comments

Popular posts from this blog

Adobe Refresh Managerについて

Sizing images of multiple resolutions for print on a page of one resolution

Illustrator cs6 "Invalid Serial Number"