Skip to main content
yuriy_levchenko
Known Participant
December 9, 2018
Question

How to update UI params after sequence resetup?

  • December 9, 2018
  • 1 reply
  • 3301 views

Hello,

My plugins rename param on cmd PF_Cmd_UPDATE_PARAMS_UI

                            PF_ParamDef param_copy = *params[id];
                            strcpy( param_copy.name, parameter.name );

                            param_copy.uu.change_flags = PF_ChangeFlag_CHANGED_VALUE;

                            ERR( suites.ParamUtilsSuite3()->PF_UpdateParamUI( in_data->effect_ref,
                                id,
                                &param_copy ) )

but, if I close and open solution, name of param return to default, and don't call cmd PF_Cmd_UPDATE_PARAMS_UI.

Maybe as it is possible to force this event?

Thanks!

This topic has been closed for replies.

1 reply

Community Expert
December 9, 2018

indeed, param names don't save with the project and get reset when a

project is loaded.

technically, you can change param names during USER_CHANGED_PARAM, however,

conceptually, it should be done during UPDATE_PARAMS_UI.

the latter, is sent when in instance is either created or loaded (and a

bunch of other occasions).

if you can't deduce the correct name changing during "update params" and

can only do so during "user changed param", consider storing the relevant

data in sequence_data during "user change param", where you can access it

later during "update params ui". sequence data can also be stored with the

project, and therefore will be available when the saved project is loaded.

On Sun, Dec 9, 2018 at 6:30 PM yuriy_levchenko <forums_noreply@adobe.com>

Known Participant
January 3, 2019

https://forums.adobe.com/people/shachar+carmi  wrote

technically, you can change param names during USER_CHANGED_PARAM, however,

conceptually, it should be done during UPDATE_PARAMS_UI.

the latter, is sent when in instance is either created or loaded (and a

bunch of other occasions).

On Sun, Dec 9, 2018 at 6:30 PM yuriy_levchenko <forums_noreply@adobe.com>

This is not true according to SDK Manual it is the other way around..

I am confused too - this is by far the most complicated SDK ever written. (For something as simple as rendering a few pixels)

I quote

""

Only cosmetic changes may be made in response to this command. Don’t change parameter values while responding to PF_Cmd_UPDATE_PARAMS_UI; do so during PF_Cmd_USER_CHANGED_PARAM instead.

""

Community Expert
January 3, 2019

actually that quote says exactly what i have said.

the changing of param names is a "cosmetic" operation, and therefore

belongs in PF_Cmd_UPDATE_PARAMS_UI.

changing param VALUE is not "cosmetic" and therefore doesn't belong

in PF_Cmd_UPDATE_PARAMS_UI, but instead should be done during

PF_Cmd_USER_CHANGED_PARAM.