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>

yuriy_levchenko
Known Participant
December 9, 2018

The problem is that after creating and calling PF_Cmd_SEQUENCE_RESETUP I set the flag

out_data-> out_flags | = PF_OutFlag_REFRESH_UI

but the PF_Cmd_UPDATE_PARAMS_UI is not called.

Community Expert
December 9, 2018

do you have PF_OutFlag_SEND_UPDATE_PARAMS_UI set on global setup?

in any case, UPDATE_PARAMS_UI will be sent on the first time the effect

instance is visible on the ECW, and not necessarily right after

SEQUENCE_RESETUP.

point being, you should get a "update params ui" call at the relevant time.

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