Thank for a link. I will need to clarify my need, that is to use bindkey to change a selected layer path already in layout database . For instance : I select layer(s) metal 1 path then press button "2". Selected layer(s) metal1 will change to metal 2.
It's all available in the link mentioned above. If you know how to use skill, you should be able to extract the code you need from the link's answers.
If not, better use the GUI.