Disable automated parameters?


Is there a way to temporarily disable an automated parameter? I have some automatable parameters whose controllers my at times become disabled, which prevents the user from changing them via the GUI, but they could still change the parameters via automation (or a control surface, etc.), if they wanted. I was wondering if there is a way to prevent those parameters from changing while their associated controls are disabled?

I can ignore the changes in my processor code, and not send them to my DSP, but then my DSP and the internal parameter states do not match.

I could re-set the parameter, I think that would create a feedback loop, where the parameter is changed while responding to the parameter change.

What I would like is some way to prevent the parameter value itself (on both the host and in the plug-in) from changing while its associated control is disabled. Is that possible?