Plugins are free to set parameters in limited set of circumstances, typically relating to user interaction. You can only set parameters in the following actions passed to the plug-in's main entry function...
Plugins can also set parameter values during the following actions passed to any of its interacts main entry function...