Skip to main content
May 23, 2014
Question

Manually trigger PF_Cmd_USER_CHANGED_PARAMS event

  • May 23, 2014
  • 1 reply
  • 414 views

Hi!

I'm quite new to AE programming and I have a problem with updating the UI controls.

In particular, i have 2 float sliders that are the input parameters for my application. However, if the silders are in default position or the application is called for the first time, these paramters are determined automatically within my application. So, when the parameters are computed automatically (and not set by the user), I want to updated the corresponding controls in the UI. As the documentation states that parameter values should not be changed in the PF_Cmd_UPDATE_PARAMS_UI command, I want to updated the values in my ParamsChanged() routine, which is called if the PF_Cmd_USER_CHANGED_PARAM event is triggered.

So, i want to ask, if there is a way to manually trigger the F_Cmd_USER_CHANGED_PARAM event? Or am I completely on the wrong track?

I am grateful for any hint!

This topic has been closed for replies.

1 reply

Community Expert
May 23, 2014

hi tenc6, welcome to the forum!

any chance your name has to do with the band "tenacious D"? (in the movie

the name is split in 2)

anyways,

you can't manually trigger the USER)CHANGED_PARAM event.

i'd say the route for you would be to use AEGP_SetStreamValue() instead.

you can use that command at almost any time and you don't have to beg for

the mercy of AE to send you the correct call.

just do it during UPDATE_PARAMS_UI, or even during the first render call if

you'd like.

May 26, 2014

shachar carmi wrote:

hi tenc6, welcome to the forum!

any chance your name has to do with the band "tenacious D"? (in the movie

the name is split in 2)

Correct !

shachar carmi wrote:

you can't manually trigger the USER)CHANGED_PARAM event.

i'd say the route for you would be to use AEGP_SetStreamValue() instead.

you can use that command at almost any time and you don't have to beg for

the mercy of AE to send you the correct call.

just do it during UPDATE_PARAMS_UI, or even during the first render call if

you'd like.

Ok, thank you very much for your advice!