Copy Parameters of One Layer to another...

I’m interested in creating a function tied to a button, perhaps, on my instrument that allows the user to copy parameters from one layer and paste them to another. I realize this is probably similar to the function that allows you to switch subpresets in one layer in how the script can copy certain parameters and paste them once the layer’s sub preset is changed.
However, not being very advanced at all with scripting I’m struggling at implementing this. Any help is greatly appreciated!

Thanks!