Change setting inside plugin according to a variable?

Is is possible to change a setting inside a plugin using a variable?

Example:
SRD_Gameupgrade plugin has a setting called "Scale mode", that allow me to chose "Nearest" or "linear". Is is possible to change from one to another according to a variable?Like, if variable "Scale" is 1, Scale mode(inside the plugin) becomes Nearest, if it's 2, then becomes Linear.
Only by modifying the code of the plugin, but easy if you do that.

Original thread: https://forums.rpgmakerweb.com/threads/change-setting-inside-plugin-according-to-a-variable.87647/