Can I check if OnParamChange was triggered by user input?

I have some code that I want to run when a certain control (currently a IBSwitchControl) is changed. But I only want it to be triggered by actual user input, not when a DAW project is opened and the plugin loads. Since I was running this code from OnParamChange I was wondering if there is a way to check whether change was triggered by user input. Or maybe you can think of a better approach? Are action functions only triggered by user input?

BTW, if it matters, the code is changing other params and running onParamChange for those params

Thanks a lot!

You can use the EParamSource argument of OnParamChange() or OnParamChangeUI()

1 Like

yes, that’s correct.

1 Like